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.
This commit is contained in:
Jens Gustedt authored and Rich Felker committed 2018-01-09 13:14:49 -05:00
1 parent 47d0bcd476
commit c4bc0b1a64
6 files changed
+12 -12

No files matched your search

+2 -2
View File
@@ -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;
}