summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-10-15 09:50:57 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-10-15 09:50:57 +0000
commitb851de6cd1cc79b5e8ed7db02ebd0a9769d34232 (patch)
treef0d984533f055647589623805bf79fdd25f6534a /thread.h
parent605e5515a799a08f29f3263d09d5215322548dc9 (diff)
downloadperl-b851de6cd1cc79b5e8ed7db02ebd0a9769d34232.tar.gz
pthread_condattr_init in thread.h for OLD_PTHREADS_API.
p4raw-id: //depot/perl@126
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/thread.h b/thread.h
index 4bea061548..5a7d5b5b2e 100644
--- a/thread.h
+++ b/thread.h
@@ -47,6 +47,7 @@ typedef pthread_t perl_thread;
#define pthread_key_create(k,d) pthread_keycreate(k,(pthread_destructor_t)(d))
#else
#define pthread_mutexattr_default NULL
+#define pthread_condattr_default NULL
#endif /* OLD_PTHREADS_API */
#define MUTEX_INIT(m) \
@@ -60,7 +61,9 @@ typedef pthread_t perl_thread;
#define MUTEX_DESTROY(m) \
if (pthread_mutex_destroy((m))) croak("panic: MUTEX_DESTROY"); else 1
#define COND_INIT(c) \
- if (pthread_cond_init((c), NULL)) croak("panic: COND_INIT"); else 1
+ if (pthread_cond_init((c), pthread_condattr_default)) \
+ croak("panic: COND_INIT"); \
+ else 1
#define COND_SIGNAL(c) \
if (pthread_cond_signal((c))) croak("panic: COND_SIGNAL"); else 1
#define COND_BROADCAST(c) \