summaryrefslogtreecommitdiff
path: root/libc/inet/rpc/rpc_thread.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-08-12 09:13:58 +0000
committerEric Andersen <andersen@codepoet.org>2002-08-12 09:13:58 +0000
commitac1a542ba0b64dde7b9ccc8430c9e8cb0ffd7088 (patch)
tree079a0f73ab030d3004018130aa38a0fecf91d114 /libc/inet/rpc/rpc_thread.c
parent9f615c3fbbcfd1b3866ed2e1c7fad24be75dd1ca (diff)
Fix use of __pthread_once, and fix rpc usage of thread local
storage.... -Erik
Diffstat (limited to 'libc/inet/rpc/rpc_thread.c')
-rw-r--r--libc/inet/rpc/rpc_thread.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/libc/inet/rpc/rpc_thread.c b/libc/inet/rpc/rpc_thread.c
index 6c01af95c..ba5350ec9 100644
--- a/libc/inet/rpc/rpc_thread.c
+++ b/libc/inet/rpc/rpc_thread.c
@@ -35,12 +35,8 @@ __rpc_thread_destroy (void)
}
-#warning fix multithreaded initialization...
-#if 0
extern int __pthread_once (pthread_once_t *__once_control,
void (*__init_routine) (void));
-asm (".weak __pthread_once");
-
# define __libc_once_define(CLASS, NAME) \
CLASS pthread_once_t NAME = PTHREAD_ONCE_INIT
@@ -86,12 +82,6 @@ __rpc_thread_variables (void)
}
return tvp;
}
-#else
-struct rpc_thread_variables * __rpc_thread_variables (void)
-{
- return __libc_tsd_RPC_VARS_data;
-}
-#endif
/* Global variables If we're single-threaded, or if this is the first