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_kill.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'pthread_kill.c') 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; } -- cgit v1.2.3