summaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_private.h
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2010-10-26 09:25:29 +0000
committerDavid Xu <davidxu@FreeBSD.org>2010-10-26 09:25:29 +0000
commitb11e8ae6799fdb8cf7d5b1bc20e694a87f772472 (patch)
tree966b0f22f9d42a31b65ff99b47b4e297fd42b4bf /lib/libthr/thread/thr_private.h
parent52754c7acbd98290ed087c5790be23a0b5ffbe41 (diff)
Notes
Diffstat (limited to 'lib/libthr/thread/thr_private.h')
-rw-r--r--lib/libthr/thread/thr_private.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_private.h b/lib/libthr/thread/thr_private.h
index b027469ea696..9ef3b8f315ad 100644
--- a/lib/libthr/thread/thr_private.h
+++ b/lib/libthr/thread/thr_private.h
@@ -107,6 +107,15 @@ TAILQ_HEAD(mutex_queue, pthread_mutex);
} \
} while (0)
+/* XXX These values should be same as those defined in pthread.h */
+#define THR_MUTEX_INITIALIZER ((struct pthread_mutex *)NULL)
+#define THR_ADAPTIVE_MUTEX_INITIALIZER ((struct pthread_mutex *)1)
+#define THR_MUTEX_DESTROYED ((struct pthread_mutex *)2)
+#define THR_COND_INITIALIZER ((struct pthread_cond *)NULL)
+#define THR_COND_DESTROYED ((struct pthread_cond *)1)
+#define THR_RWLOCK_INITIALIZER ((struct pthread_rwlock *)NULL)
+#define THR_RWLOCK_DESTROYED ((struct pthread_rwlock *)1)
+
struct pthread_mutex {
/*
* Lock for accesses to this structure.
@@ -571,6 +580,7 @@ extern struct pthread_attr _pthread_attr_default __hidden;
/* Default mutex attributes: */
extern struct pthread_mutex_attr _pthread_mutexattr_default __hidden;
+extern struct pthread_mutex_attr _pthread_mutexattr_adaptive_default __hidden;
/* Default condition variable attributes: */
extern struct pthread_cond_attr _pthread_condattr_default __hidden;