view perl-5.22.2/os2/os2thread.h @ 8045:a16537d2fe07

<xfix> tar xf perl-5.22.2.tar.gz # Ah, whatever, I\'m doing it anyway
author HackBot
date Sat, 14 May 2016 14:54:38 +0000
parents
children
line wrap: on
line source

#include <sys/builtin.h>
#include <sys/fmutex.h>
#include <sys/rmutex.h>
typedef int perl_os_thread;

typedef _rmutex perl_mutex;

/*typedef HEV perl_cond;*/	/* Will include os2.h into all C files.  */
typedef unsigned long perl_cond;
int os2_cond_wait(perl_cond *c, perl_mutex *m);

#ifdef USE_SLOW_THREAD_SPECIFIC
typedef int perl_key;
#else
typedef void** perl_key;
#endif

typedef unsigned long pthread_attr_t;
#define PTHREADS_INCLUDED
#define pthread_attr_init(arg) 0
#define pthread_attr_setdetachstate(arg1,arg2) 0