mirror of
https://github.com/ziglang/zig.git
synced 2026-01-17 04:45:20 +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
12 lines
276 B
C
12 lines
276 B
C
#include "pthread_impl.h"
|
|
#include "lock.h"
|
|
|
|
int pthread_setschedparam(pthread_t t, int policy, const struct sched_param *param)
|
|
{
|
|
int r;
|
|
LOCK(t->killlock);
|
|
r = !t->tid ? ESRCH : -__syscall(SYS_sched_setscheduler, t->tid, policy, param);
|
|
UNLOCK(t->killlock);
|
|
return r;
|
|
}
|