diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-01-06 00:56:35 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-01-06 00:56:35 +0000 |
commit | 37cafa773b0bbebc9aa820f92ef5949a71d2dfe4 (patch) | |
tree | 5c415fc421104b42e74aea13abe10db0ffbfdef5 /libc/inet | |
parent | ea35ab7829ae1aaae2b24408a7281ee94ce90478 (diff) |
update libc lock functions to new pthread forwarding
Diffstat (limited to 'libc/inet')
-rw-r--r-- | libc/inet/rpc/rpc_thread.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/libc/inet/rpc/rpc_thread.c b/libc/inet/rpc/rpc_thread.c index f9af0d7d6..4a7d9b044 100644 --- a/libc/inet/rpc/rpc_thread.c +++ b/libc/inet/rpc/rpc_thread.c @@ -35,25 +35,6 @@ __rpc_thread_destroy (void) } } - -/* XXX: maybe turn this into a normal __pthread_once() via pthreads/weaks.c ? */ -extern int weak_function __pthread_once (pthread_once_t *__once_control, - void (*__init_routine) (void)); - -# define __libc_once_define(CLASS, NAME) \ - CLASS pthread_once_t NAME = PTHREAD_ONCE_INIT - -/* Call handler iff the first call. */ -#define __libc_once(ONCE_CONTROL, INIT_FUNCTION) \ - do { \ - if (__pthread_once != NULL) \ - __pthread_once (&(ONCE_CONTROL), (INIT_FUNCTION)); \ - else if ((ONCE_CONTROL) == PTHREAD_ONCE_INIT) { \ - INIT_FUNCTION (); \ - (ONCE_CONTROL) = !PTHREAD_ONCE_INIT; \ - } \ - } while (0) - /* * Initialize RPC multi-threaded operation */ |