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
11 lines
212 B
C
Vendored
11 lines
212 B
C
Vendored
#include "pthread_impl.h"
|
|
#include <threads.h>
|
|
|
|
int mtx_init(mtx_t *m, int type)
|
|
{
|
|
*m = (mtx_t){
|
|
._m_type = ((type&mtx_recursive) ? PTHREAD_MUTEX_RECURSIVE : PTHREAD_MUTEX_NORMAL),
|
|
};
|
|
return thrd_success;
|
|
}
|