aboutsummaryrefslogtreecommitdiff
path: root/nptl/pthread_setschedprio.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_setschedprio.c')
-rw-r--r--nptl/pthread_setschedprio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nptl/pthread_setschedprio.c b/nptl/pthread_setschedprio.c
index 8d78d64..b83d2fb 100644
--- a/nptl/pthread_setschedprio.c
+++ b/nptl/pthread_setschedprio.c
@@ -38,6 +38,7 @@ pthread_setschedprio (pthread_t threadid, int prio)
struct sched_param param;
param.sched_priority = prio;
+ /* See CREATE THREAD NOTES in nptl/pthread_create.c. */
lll_lock (pd->lock, LLL_PRIVATE);
/* If the thread should have higher priority because of some