consistently use the LOCK an UNLOCK macros
[oweals/musl.git] / src / thread / pthread_setschedprio.c
index e0bdc03b8405c2f8938bbf557b933e375e9dce81..dc745b42a4616adfb23a7c6e8916d740b8e500ba 100644 (file)
@@ -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;
 }