about summary refs log tree commit diff
path: root/src/thread/pthread_setschedparam.c
diff options
context:
space:
mode:
authorJens Gustedt <Jens.Gustedt@inria.fr>2018-01-03 14:17:12 +0100
committerRich Felker <dalias@aerifal.cx>2018-01-09 13:14:49 -0500
commitc4bc0b1a64e1ef1e105df84401805a16e8dbe82a (patch)
treed4aa94638bb44b688b1c0acd8cfa02259c15bd4f /src/thread/pthread_setschedparam.c
parent47d0bcd4762f223364e5b58d5a381aaa0cbd7c38 (diff)
downloadmusl-c4bc0b1a64e1ef1e105df84401805a16e8dbe82a.tar.gz
musl-c4bc0b1a64e1ef1e105df84401805a16e8dbe82a.tar.xz
musl-c4bc0b1a64e1ef1e105df84401805a16e8dbe82a.zip
consistently use the LOCK an UNLOCK macros
In some places there has been a direct usage of the functions. Use the
macros consistently everywhere, such that it might be easier later on to
capture the fast path directly inside the macro and only have the call
overhead on the slow path.
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;
 }