mirror of
https://github.com/ziglang/zig.git
synced 2025-12-10 00:03:10 +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
10 lines
193 B
C
Vendored
10 lines
193 B
C
Vendored
#include "pthread_impl.h"
|
|
|
|
int pthread_mutexattr_setpshared(pthread_mutexattr_t *a, int pshared)
|
|
{
|
|
if (pshared > 1U) return EINVAL;
|
|
a->__attr &= ~128U;
|
|
a->__attr |= pshared<<7;
|
|
return 0;
|
|
}
|