From 820ca4b34c23ef8d91edade437f0f9fd781f8b89 Mon Sep 17 00:00:00 2001 From: rpj Date: Thu, 25 Oct 2001 23:51:53 +0000 Subject: * GNUmakefile (libwsock32): Add to linker flags for WSAGetLastError() and WSASetLastError(). * Makefile (wsock32.lib): Likewise. * create.c: Minor mostly inert changes. * implement.h (PTW32_MAX): Move into here and renamed from sched.h. (PTW32_MIN): Likewise. * GNUmakefile (TEST_ICE): Define if testing internal implementation of InterlockedCompareExchange. * Makefile (TEST_ICE): Likewise. * private.c (TEST_ICE): Likewise. --- create.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'create.c') diff --git a/create.c b/create.c index d36300d..2ca8705 100644 --- a/create.c +++ b/create.c @@ -160,7 +160,7 @@ pthread_create (pthread_t * tid, */ if (attr != NULL && *attr != NULL) { - (void) SetThreadPriority(thread->threadH, + (void) SetThreadPriority(threadH, PTHREAD_INHERIT_SCHED == (*attr)->inheritsched ? GetThreadPriority(GetCurrentThread()) : (*attr)->param.sched_priority ); @@ -176,7 +176,7 @@ pthread_create (pthread_t * tid, /* * This lock will force pthread_threadStart() to wait until we have - * the thread handle. + * the thread handle and have set the priority. */ (void) pthread_mutex_lock(&thread->cancelLock); @@ -214,7 +214,7 @@ pthread_create (pthread_t * tid, */ if (attr != NULL && *attr != NULL) { - (void) SetThreadPriority(thread->threadH, + (void) SetThreadPriority(threadH, PTHREAD_INHERIT_SCHED == (*attr)->inheritsched ? GetThreadPriority(GetCurrentThread()) : (*attr)->param.sched_priority ); -- cgit v1.2.3