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:
@ -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
|
||||
|
Reference in New Issue
Block a user