diff options
author | davidxu <davidxu@FreeBSD.org> | 2008-06-09 01:14:10 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2008-06-09 01:14:10 +0000 |
commit | f4d6ff9c5e2c00dd44c3e39b44c0000351d91c6d (patch) | |
tree | 64448ccd5c1431710c5a1f4513a5128d2db5c444 /lib/libc/include/un-namespace.h | |
parent | 7c70b8f716071ee1944fc97021c0857b385b755c (diff) | |
download | FreeBSD-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/un-namespace.h')
-rw-r--r-- | lib/libc/include/un-namespace.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/libc/include/un-namespace.h b/lib/libc/include/un-namespace.h index 64d1676..6b7f49a 100644 --- a/lib/libc/include/un-namespace.h +++ b/lib/libc/include/un-namespace.h @@ -95,8 +95,6 @@ #undef pthread_barrierattr_init #undef pthread_barrierattr_setpshared #undef pthread_cancel -#undef pthread_cleanup_pop -#undef pthread_cleanup_push #undef pthread_cond_broadcast #undef pthread_cond_destroy #undef pthread_cond_init |