This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Integrate mainline
[perl5.git] / os2 / os2thread.h
CommitLineData
dd96f567
IZ
1#include <sys/builtin.h>
2#include <sys/fmutex.h>
3#include <sys/rmutex.h>
3aefca04
IZ
4typedef int perl_os_thread;
5
6typedef _rmutex perl_mutex;
7
8/*typedef HEV perl_cond;*/ /* Will include os2.h into all C files. */
9typedef unsigned long perl_cond;
10
90866323 11#ifdef USE_SLOW_THREAD_SPECIFIC
3aefca04 12typedef int perl_key;
90866323
IZ
13#else
14typedef void** perl_key;
15#endif
3aefca04 16
dd96f567
IZ
17typedef unsigned long pthread_attr_t;
18#define PTHREADS_INCLUDED
3aefca04
IZ
19#define pthread_attr_init(arg) 0
20#define pthread_attr_setdetachstate(arg1,arg2) 0