From af1871fba4fc253b5a31e4a0eed667fe79f534d7 Mon Sep 17 00:00:00 2001 From: rpj Date: Thu, 18 Sep 2003 02:31:39 +0000 Subject: Cleanup and fixes to thread priority management. Other minor changes. --- pthread_self.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pthread_self.c') 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); -- cgit v1.2.3