From ec8290acdaea21b16d98f1ef5d4ae8a28ab2109a Mon Sep 17 00:00:00 2001 From: rpj Date: Wed, 3 Nov 2004 01:08:41 +0000 Subject: Mutex, semaphore, thread ID, test suite changes - see ChangeLogs --- pthread_exit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pthread_exit.c') 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); -- cgit v1.2.3