summaryrefslogtreecommitdiffstats
path: root/lib/libc/include/namespace.h
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2008-06-09 01:14:10 +0000
committerdavidxu <davidxu@FreeBSD.org>2008-06-09 01:14:10 +0000
commitf4d6ff9c5e2c00dd44c3e39b44c0000351d91c6d (patch)
tree64448ccd5c1431710c5a1f4513a5128d2db5c444 /lib/libc/include/namespace.h
parent7c70b8f716071ee1944fc97021c0857b385b755c (diff)
downloadFreeBSD-src-f4d6ff9c5e2c00dd44c3e39b44c0000351d91c6d.zip
FreeBSD-src-f4d6ff9c5e2c00dd44c3e39b44c0000351d91c6d.tar.gz
Make pthread_cleanup_push() and pthread_cleanup_pop() as a pair of macros,
use stack space to keep cleanup information, this eliminates overhead of calling malloc() and free() in thread library. Discussed on: thread@
Diffstat (limited to 'lib/libc/include/namespace.h')
-rw-r--r--lib/libc/include/namespace.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/libc/include/namespace.h b/lib/libc/include/namespace.h
index 22c3f64..a65b929 100644
--- a/lib/libc/include/namespace.h
+++ b/lib/libc/include/namespace.h
@@ -114,8 +114,6 @@
#define pthread_barrierattr_init _pthread_barrierattr_init
#define pthread_barrierattr_setpshared _pthread_barrierattr_setpshared
#define pthread_cancel _pthread_cancel
-#define pthread_cleanup_pop _pthread_cleanup_pop
-#define pthread_cleanup_push _pthread_cleanup_push
#define pthread_cond_broadcast _pthread_cond_broadcast
#define pthread_cond_destroy _pthread_cond_destroy
#define pthread_cond_init _pthread_cond_init
OpenPOWER on IntegriCloud