mirror of
https://github.com/ziglang/zig.git
synced 2025-12-21 05:33:15 +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
9 lines
166 B
C
Vendored
9 lines
166 B
C
Vendored
#include "pthread_impl.h"
|
|
#include <errno.h>
|
|
|
|
int pthread_spin_lock(pthread_spinlock_t *s)
|
|
{
|
|
while (*(volatile int *)s || a_cas(s, 0, EBUSY)) a_spin();
|
|
return 0;
|
|
}
|