X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=inline;f=src%2Fthread%2Fpthread_getschedparam.c;h=a994b637306a40c1155c1e400bfd2816b888676e;hb=ebd8ef50d5012733d86ed4a6834ca6d776b069ae;hp=7b6a95f134b91572e2e1e884eb6a3c6a119d07fb;hpb=c6d441e3a246370d9c459396ec22b096db93850e;p=musl diff --git a/src/thread/pthread_getschedparam.c b/src/thread/pthread_getschedparam.c index 7b6a95f1..a994b637 100644 --- a/src/thread/pthread_getschedparam.c +++ b/src/thread/pthread_getschedparam.c @@ -3,15 +3,15 @@ int pthread_getschedparam(pthread_t t, int *restrict policy, struct sched_param *restrict param) { int r; - __lock(t->killlock); + LOCK(t->killlock); if (t->dead) { r = ESRCH; } else { - r = -__syscall(SYS_sched_getparam, t->tid, ¶m); + r = -__syscall(SYS_sched_getparam, t->tid, param); if (!r) { *policy = __syscall(SYS_sched_getscheduler, t->tid); } } - __unlock(t->killlock); + UNLOCK(t->killlock); return r; }