X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=os2%2Fos2thread.h;h=9516ddda0bc3cfa45764d2b8d39cf9f534975e97;hb=e2a00deffd1120f4d05f9572ed3a9b28ad643f99;hp=44dec3f2442f5e36c22d3a4b81dbb638722bed67;hpb=dd96f567babd77c258fd51112ff376f11f0b32ac;p=p5sagit%2Fp5-mst-13.2.git diff --git a/os2/os2thread.h b/os2/os2thread.h index 44dec3f..9516ddd 100644 --- a/os2/os2thread.h +++ b/os2/os2thread.h @@ -1,10 +1,20 @@ #include #include #include -typedef int pthread_t; -typedef _rmutex pthread_mutex_t; -/*typedef HEV pthread_cond_t;*/ -typedef unsigned long pthread_cond_t; -typedef int pthread_key_t; +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; + +#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