diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1998-10-21 09:15:42 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1998-10-21 09:15:42 +0000 |
commit | 9bbd4fab969be820145f86437927ebc1afa5896b (patch) | |
tree | 3a7dbd0e1f5a131a27cca33118ce751c3b5a38e9 /thread.h | |
parent | 0d85d8777a6ec9fdcc93593180474ebff6fbbccb (diff) | |
download | perl-9bbd4fab969be820145f86437927ebc1afa5896b.tar.gz |
VM/ESA feedback for #2028.
p4raw-id: //depot/cfgperl@2031
Diffstat (limited to 'thread.h')
-rw-r--r-- | thread.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -11,7 +11,7 @@ croak("panic: DETACH"); \ } \ } STMT_END -# define THR getTHR +# define THR getTHR() struct perl_thread *getTHR _((void)); # define PTHREAD_GETSPECIFIC_INT # ifdef DJGPP @@ -27,6 +27,7 @@ struct perl_thread *getTHR _((void)); # define PTHREAD_ATTR_SETDETACHSTATE(a,s) pthread_setdetach_np(a,s) # define pthread_key_create(k,d) pthread_keycreate(k,(pthread_destructor_t)(d)) # define pthread_mutexattr_init(a) pthread_mutexattr_create(a) +# define pthread_mutexattr_settype(a,t) pthread_mutexattr_setkind_np(a,t) # endif # if defined(DJGPP) || defined(__OPEN_VM) # define PTHREAD_ATTR_SETDETACHSTATE(a,s) pthread_attr_setdetachstate(a,&(s)) @@ -35,9 +36,6 @@ struct perl_thread *getTHR _((void)); # if defined(DJGPP) || defined(VMS) # define PTHREAD_CREATE(t,a,s,d) pthread_create(t,a,s,d) # endif -# if defined(__OPEN_VM) || defined(VMS) -# define pthread_mutexattr_settype(a,t) pthread_mutexattr_setkind_np(a,t) -# endif # endif # ifndef VMS # define pthread_mutexattr_default NULL |