mirror of
https://github.com/ziglang/zig.git
synced 2025-12-22 06:03:16 +00:00
also start prefering NtDll API. so far: * NtQueryInformationFile * NtClose adds a performance workaround for windows unicode conversion. but that should probably be removed before merging
13 lines
234 B
C
13 lines
234 B
C
#include "pthread_impl.h"
|
|
#include "lock.h"
|
|
|
|
int pthread_kill(pthread_t t, int sig)
|
|
{
|
|
int r;
|
|
LOCK(t->killlock);
|
|
r = t->tid ? -__syscall(SYS_tkill, t->tid, sig)
|
|
: (sig+0U >= _NSIG ? EINVAL : 0);
|
|
UNLOCK(t->killlock);
|
|
return r;
|
|
}
|