summaryrefslogtreecommitdiffstats
path: root/include/pthread.h
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-04-04 10:59:42 +0000
committerjb <jb@FreeBSD.org>1998-04-04 10:59:42 +0000
commit0982c14667ebe8ecb1a107c9246e9b17008840fa (patch)
tree7e5ee68dd75476234018aa13b1f74f32741afce3 /include/pthread.h
parentc34d8f0bcba1b27b5bc7b9967dd8482e970a8811 (diff)
downloadFreeBSD-src-0982c14667ebe8ecb1a107c9246e9b17008840fa.zip
FreeBSD-src-0982c14667ebe8ecb1a107c9246e9b17008840fa.tar.gz
Add static initializer defines as specified by POSIX.
Diffstat (limited to 'include/pthread.h')
-rw-r--r--include/pthread.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/pthread.h b/include/pthread.h
index b196662..701328b 100644
--- a/include/pthread.h
+++ b/include/pthread.h
@@ -1,6 +1,6 @@
/*
* Copyright (c) 1993, 1994 by Chris Provenzano, proven@mit.edu
- * Copyright (c) 1995 by John Birrell <jb@cimlogic.com.au>
+ * Copyright (c) 1995-1998 by John Birrell <jb@cimlogic.com.au>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -138,7 +138,13 @@ struct pthread_once {
#define PTHREAD_ONCE_INIT { PTHREAD_NEEDS_INIT, NULL }
/*
- * Default attribute arguments.
+ * Static initialization values.
+ */
+#define PTHREAD_MUTEX_INITIALIZER NULL
+#define PTHREAD_COND_INITIALIZER NULL
+
+/*
+ * Default attribute arguments (draft 4, deprecated).
*/
#ifndef PTHREAD_KERNEL
#define pthread_condattr_default NULL
OpenPOWER on IntegriCloud