summaryrefslogtreecommitdiff
path: root/ptw32_throw.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 /ptw32_throw.c
parentcccaf0c2c82e78a72d69a4a50c872f308bed2f65 (diff)
Mutex, semaphore, thread ID, test suite changes - see ChangeLogs
Diffstat (limited to 'ptw32_throw.c')
-rw-r--r--ptw32_throw.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ptw32_throw.c b/ptw32_throw.c
index 8f67069..1a71b97 100644
--- a/ptw32_throw.c
+++ b/ptw32_throw.c
@@ -53,7 +53,7 @@ ptw32_throw (DWORD exception)
* Don't use pthread_self() to avoid creating an implicit POSIX thread handle
* unnecessarily.
*/
- pthread_t self = (pthread_t) pthread_getspecific (ptw32_selfThreadKey);
+ ptw32_thread_t * sp = (ptw32_thread_t *) pthread_getspecific (ptw32_selfThreadKey);
#ifdef __CLEANUP_SEH
DWORD exceptionInformation[3];
@@ -65,7 +65,7 @@ ptw32_throw (DWORD exception)
exit (1);
}
- if (NULL == self || self->implicit)
+ if (NULL == sp || sp->implicit)
{
/*
* We're inside a non-POSIX initialised Win32 thread
@@ -81,7 +81,7 @@ ptw32_throw (DWORD exception)
exitCode = (unsigned) PTHREAD_CANCELED;
break;
case PTW32_EPS_EXIT:
- exitCode = (unsigned) self->exitStatus;;
+ exitCode = (unsigned) sp->exitStatus;;
break;
}
@@ -109,7 +109,7 @@ ptw32_throw (DWORD exception)
#ifdef __CLEANUP_C
ptw32_pop_cleanup_all (1);
- longjmp (self->start_mark, exception);
+ longjmp (sp->start_mark, exception);
#else /* __CLEANUP_C */