summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-02-25 17:14:20 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-02-25 17:14:20 +0000
commitb883f7ba0f183a7c71a74c942b77bb513e09f9e6 (patch)
tree11503afd48edf2c937b0e8612e48442711ae67a5
parentb558de82b8947e7ec879b898be5b0ce8771fec3f (diff)
Revert change. Calls can only be used when utilizing TLS. Sorry for the breakage.
-rw-r--r--libc/inet/rpc/rpc_thread.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libc/inet/rpc/rpc_thread.c b/libc/inet/rpc/rpc_thread.c
index 4031b77be..4e7219118 100644
--- a/libc/inet/rpc/rpc_thread.c
+++ b/libc/inet/rpc/rpc_thread.c
@@ -18,11 +18,12 @@ libc_hidden_proto(__rpc_thread_svc_max_pollfd)
#ifdef __UCLIBC_HAS_THREADS__
#include <bits/libc-tsd.h>
-#include <bits/libc-lock.h>
+//#include <bits/libc-lock.h>
/* Variable used in non-threaded applications or for the first thread. */
static struct rpc_thread_variables __libc_tsd_RPC_VARS_mem;
-__libc_tsd_define (, RPC_VARS)
+static struct rpc_thread_variables *__libc_tsd_RPC_VARS_data =
+ &__libc_tsd_RPC_VARS_mem;
/*
* Task-variable destructor
@@ -30,7 +31,7 @@ __libc_tsd_define (, RPC_VARS)
void
__rpc_thread_destroy (void)
{
- struct rpc_thread_variables *tvp = __libc_tsd_get (RPC_VARS);
+ struct rpc_thread_variables *tvp = __rpc_thread_variables();
if (tvp != NULL && tvp != &__libc_tsd_RPC_VARS_mem) {
__rpc_thread_svc_cleanup ();
@@ -43,7 +44,6 @@ __rpc_thread_destroy (void)
free (tvp->authdes_cache_s);
free (tvp->authdes_lru_s);
free (tvp);
- __libc_tsd_set (RPC_VARS, NULL);
}
}
@@ -72,7 +72,7 @@ __rpc_thread_variables (void)
if (tvp != NULL)
__libc_tsd_set (RPC_VARS, tvp);
else
- tvp = __libc_tsd_RPC_VARS;
+ tvp = __libc_tsd_RPC_VARS_data;
}
}
return tvp;