summaryrefslogtreecommitdiff
path: root/create.c
diff options
context:
space:
mode:
Diffstat (limited to 'create.c')
-rw-r--r--create.c6
1 files changed, 3 insertions, 3 deletions
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 );