source:
asp3_tinet_ecnl_arm/trunk/musl-1.1.18/src/thread/pthread_kill.c@
377
Last change on this file since 377 was 352, checked in by , 6 years ago | |
---|---|
|
|
File size: 194 bytes |
Rev | Line | |
---|---|---|
[352] | 1 | #include "pthread_impl.h" |
2 | ||
3 | int pthread_kill(pthread_t t, int sig) | |
4 | { | |
5 | int r; | |
6 | __lock(t->killlock); | |
7 | r = t->dead ? ESRCH : -__syscall(SYS_tkill, t->tid, sig); | |
8 | __unlock(t->killlock); | |
9 | return r; | |
10 | } |
Note:
See TracBrowser
for help on using the repository browser.