summaryrefslogtreecommitdiff
path: root/pthread_exit.c
diff options
context:
space:
mode:
authorrpj <rpj>2004-11-03 01:08:41 +0000
committerrpj <rpj>2004-11-03 01:08:41 +0000
commitec8290acdaea21b16d98f1ef5d4ae8a28ab2109a (patch)
tree0bd3750ec1cc12594b6cfe69473e393da6ec101b /pthread_exit.c
parentcccaf0c2c82e78a72d69a4a50c872f308bed2f65 (diff)
Mutex, semaphore, thread ID, test suite changes - see ChangeLogs
Diffstat (limited to 'pthread_exit.c')
-rw-r--r--pthread_exit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pthread_exit.c b/pthread_exit.c
index c8fb4fb..aadff5c 100644
--- a/pthread_exit.c
+++ b/pthread_exit.c
@@ -65,20 +65,20 @@ pthread_exit (void *value_ptr)
* ------------------------------------------------------
*/
{
- pthread_t self;
+ ptw32_thread_t * sp;
/*
* Don't use pthread_self() to avoid creating an implicit POSIX thread handle
* unnecessarily.
*/
- self = (pthread_t) pthread_getspecific (ptw32_selfThreadKey);
+ sp = (ptw32_thread_t *) pthread_getspecific (ptw32_selfThreadKey);
#ifdef _UWIN
if (--pthread_count <= 0)
exit ((int) value_ptr);
#endif
- if (NULL == self)
+ if (NULL == sp)
{
/*
* A POSIX thread handle was never created. I.e. this is a
@@ -97,7 +97,7 @@ pthread_exit (void *value_ptr)
/* Never reached */
}
- self->exitStatus = value_ptr;
+ sp->exitStatus = value_ptr;
ptw32_throw (PTW32_EPS_EXIT);