summaryrefslogtreecommitdiff
path: root/src/thread/pthread_setschedparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/pthread_setschedparam.c')
-rw-r--r--src/thread/pthread_setschedparam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thread/pthread_setschedparam.c b/src/thread/pthread_setschedparam.c
index c4738d64..9e2fa456 100644
--- a/src/thread/pthread_setschedparam.c
+++ b/src/thread/pthread_setschedparam.c
@@ -3,8 +3,8 @@
int pthread_setschedparam(pthread_t t, int policy, const struct sched_param *param)
{
int r;
- __lock(t->killlock);
+ LOCK(t->killlock);
r = t->dead ? ESRCH : -__syscall(SYS_sched_setscheduler, t->tid, policy, param);
- __unlock(t->killlock);
+ UNLOCK(t->killlock);
return r;
}