summaryrefslogtreecommitdiffstats
path: root/lib/libc/include
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2002-11-01 09:37:17 +0000
committerdfr <dfr@FreeBSD.org>2002-11-01 09:37:17 +0000
commite71d8ae47f4c733a1c47bb20bc1c82627daf1189 (patch)
treebde8613b059f593e0ef22131bf4e8f6c3a8063b7 /lib/libc/include
parente7f8941120daac766326c39b1dc5bfd35f73b14e (diff)
downloadFreeBSD-src-e71d8ae47f4c733a1c47bb20bc1c82627daf1189.zip
FreeBSD-src-e71d8ae47f4c733a1c47bb20bc1c82627daf1189.tar.gz
* Add stubs for pthread_cond_broadcast.
* Fix typos in rwlock stubs. * Add pthread_XXX counterparts to the _pthread_XXX stubs which libraries like libX11 can use to ensure thread-safety without requiring the use of a thread library. Submitted by: Terry Lambert (pthread_cond_broadcast) Reviewed by: deischen
Diffstat (limited to 'lib/libc/include')
-rw-r--r--lib/libc/include/namespace.h1
-rw-r--r--lib/libc/include/reentrant.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/include/namespace.h b/lib/libc/include/namespace.h
index bbd33c0..bfe49e2 100644
--- a/lib/libc/include/namespace.h
+++ b/lib/libc/include/namespace.h
@@ -77,6 +77,7 @@
#define open _open
#define poll _poll
#define pthread_cond_signal _pthread_cond_signal
+#define pthread_cond_broadcast _pthread_cond_broadcast
#define pthread_cond_wait _pthread_cond_wait
#define pthread_cond_init _pthread_cond_init
#define pthread_exit _pthread_exit
diff --git a/lib/libc/include/reentrant.h b/lib/libc/include/reentrant.h
index e6ceb5b..8ce3af6 100644
--- a/lib/libc/include/reentrant.h
+++ b/lib/libc/include/reentrant.h
@@ -109,6 +109,8 @@
#define cond_init(c, a, p) _pthread_cond_init(c, a)
#define cond_signal(m) if (__isthreaded) \
_pthread_cond_signal(m)
+#define cond_broadcast(m) if (__isthreaded) \
+ _pthread_cond_broadcast(m)
#define cond_wait(c, m) if (__isthreaded) \
_pthread_cond_wait(c, m)
OpenPOWER on IntegriCloud