diff options
author | rpj <rpj> | 2004-11-03 01:08:41 +0000 |
---|---|---|
committer | rpj <rpj> | 2004-11-03 01:08:41 +0000 |
commit | ec8290acdaea21b16d98f1ef5d4ae8a28ab2109a (patch) | |
tree | 0bd3750ec1cc12594b6cfe69473e393da6ec101b /pthread_kill.c | |
parent | cccaf0c2c82e78a72d69a4a50c872f308bed2f65 (diff) |
Mutex, semaphore, thread ID, test suite changes - see ChangeLogs
Diffstat (limited to 'pthread_kill.c')
-rw-r--r-- | pthread_kill.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pthread_kill.c b/pthread_kill.c index c40235c..4cb62c1 100644 --- a/pthread_kill.c +++ b/pthread_kill.c @@ -74,12 +74,16 @@ pthread_kill (pthread_t thread, int sig) */ { int result = 0; + ptw32_thread_t * tp; EnterCriticalSection (&ptw32_thread_reuse_lock); - if (NULL == thread - || NULL == thread->threadH - || THREAD_PRIORITY_ERROR_RETURN == GetThreadPriority (thread->threadH)) + tp = (ptw32_thread_t *) thread.p; + + if (NULL == tp + || thread.x != tp->ptHandle.x + || NULL == tp->threadH + || THREAD_PRIORITY_ERROR_RETURN == GetThreadPriority (tp->threadH)) { result = ESRCH; } |