summaryrefslogtreecommitdiff
path: root/pthread_self.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthread_self.c')
-rw-r--r--pthread_self.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pthread_self.c b/pthread_self.c
index e7a81b8..61979cd 100644
--- a/pthread_self.c
+++ b/pthread_self.c
@@ -115,6 +115,12 @@ pthread_self (void)
return (NULL);
}
#endif
+
+ /*
+ * No need to explicitly serialise access to sched_priority
+ * because the new handle is not yet public.
+ */
+ self->sched_priority = GetThreadPriority(self->threadH);
}
pthread_setspecific (ptw32_selfThreadKey, self);