1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

sync: use Event for waitgroup on windows

This commit is contained in:
joe-conigliaro
2020-06-23 03:23:42 +10:00
parent a4b159a80f
commit d19a33c420
5 changed files with 71 additions and 14 deletions

View File

@ -379,20 +379,18 @@ fn C.GetLastError() u32
fn C.CreateDirectory(byteptr, int) bool
// win crypto
fn C.BCryptGenRandom(int, voidptr, int, int) int
// win synchronization
fn C.CreateMutex(int, bool, byteptr) voidptr
fn C.WaitForSingleObject(voidptr, int) int
fn C.ReleaseMutex(voidptr) bool
fn C.CreateEvent(int, bool, bool, byteptr) voidptr
fn C.SetEvent(voidptr) int
// pthread.h
fn C.pthread_mutex_init(voidptr, voidptr) int
fn C.pthread_mutex_lock(voidptr) int
fn C.pthread_mutex_unlock(voidptr) int