summaryrefslogtreecommitdiff
path: root/pthread_self.c
diff options
context:
space:
mode:
authorrpj <rpj>2003-09-18 02:31:39 +0000
committerrpj <rpj>2003-09-18 02:31:39 +0000
commitaf1871fba4fc253b5a31e4a0eed667fe79f534d7 (patch)
tree1242599d7334ae50c5c05f9b23b52876e4287924 /pthread_self.c
parentfac679912b15dd89cafdb09bf873d7eacc80a05e (diff)
Cleanup and fixes to thread priority management. Other minor changes.snap-2003-09-18
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);