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:
1 parent
47d0bcd476
commit
c4bc0b1a64
6 files changed
+12
-12
No files matched your search
@@ -3,8 +3,8 @@
|
||||
int pthread_kill(pthread_t t, int sig)
|
||||
{
|
||||
int r;
|
||||
__lock(t->killlock);
|
||||
LOCK(t->killlock);
|
||||
r = t->dead ? ESRCH : -__syscall(SYS_tkill, t->tid, sig);
|
||||
__unlock(t->killlock);
|
||||
UNLOCK(t->killlock);
|
||||
return r;
|
||||
}
|
||||
Reference in new issue
Block a user