projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
consistently use the LOCK an UNLOCK macros
[oweals/musl.git]
/
src
/
thread
/
pthread_setschedprio.c
diff --git
a/src/thread/pthread_setschedprio.c
b/src/thread/pthread_setschedprio.c
index e0bdc03b8405c2f8938bbf557b933e375e9dce81..dc745b42a4616adfb23a7c6e8916d740b8e500ba 100644
(file)
--- a/
src/thread/pthread_setschedprio.c
+++ b/
src/thread/pthread_setschedprio.c
@@
-3,8
+3,8
@@
int pthread_setschedprio(pthread_t t, int prio)
{
int r;
-
__lock
(t->killlock);
+
LOCK
(t->killlock);
r = t->dead ? ESRCH : -__syscall(SYS_sched_setparam, t->tid, &prio);
-
__unlock
(t->killlock);
+
UNLOCK
(t->killlock);
return r;
}