svn commit: trunk/uClibc/libc/inet/rpc
psm at uclibc.org
psm at uclibc.org
Thu Mar 9 08:55:36 UTC 2006
Author: psm
Date: 2006-03-09 00:55:34 -0800 (Thu, 09 Mar 2006)
New Revision: 14475
Log:
Add back sjhill's 14625 commit, correcting the typo that made it fail
Modified:
trunk/uClibc/libc/inet/rpc/rpc_thread.c
Changeset:
Modified: trunk/uClibc/libc/inet/rpc/rpc_thread.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/rpc_thread.c 2006-03-09 06:12:26 UTC (rev 14474)
+++ trunk/uClibc/libc/inet/rpc/rpc_thread.c 2006-03-09 08:55:34 UTC (rev 14475)
@@ -21,8 +21,7 @@
/* Variable used in non-threaded applications or for the first thread. */
static struct rpc_thread_variables __libc_tsd_RPC_VARS_mem;
-static struct rpc_thread_variables *__libc_tsd_RPC_VARS_data =
- &__libc_tsd_RPC_VARS_mem;
+__libc_tsd_define (, RPC_VARS)
/*
* Task-variable destructor
@@ -30,7 +29,7 @@
void
__rpc_thread_destroy (void)
{
- struct rpc_thread_variables *tvp = __rpc_thread_variables();
+ struct rpc_thread_variables *tvp = __libc_tsd_get (RPC_VARS);
if (tvp != NULL && tvp != &__libc_tsd_RPC_VARS_mem) {
__rpc_thread_svc_cleanup ();
@@ -43,6 +42,7 @@
free (tvp->authdes_cache_s);
free (tvp->authdes_lru_s);
free (tvp);
+ __libc_tsd_set (RPC_VARS, NULL);
}
}
@@ -71,7 +71,7 @@
if (tvp != NULL)
__libc_tsd_set (RPC_VARS, tvp);
else
- tvp = __libc_tsd_RPC_VARS_data;
+ tvp = __libc_tsd_get (RPC_VARS);
}
}
return tvp;
More information about the uClibc-cvs
mailing list