cosmopolitan/libc/nt/kernel32/CreateSemaphoreW.s
Justine Tunney b5cb71ab84
Use *NSYNC for POSIX threads locking APIs
Condition variables, barriers, and r/w locks now work very well.
2022-09-11 11:04:50 -07:00

12 lines
256 B
ArmAsm

.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateSemaphoreW,CreateSemaphoreW,0
.text.windows
CreateSemaphore:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateSemaphoreW(%rip),%rax
jmp __sysv2nt
.endfn CreateSemaphore,globl
.previous