mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-29 10:50:05 +00:00
Update sys/windows; Add sync.Blocking_Mutex (windows only at the moment)
This commit is contained in:
@@ -245,6 +245,9 @@ foreign kernel32 {
|
||||
AcquireSRWLockExclusive :: proc(SRWLock: ^SRWLOCK) ---
|
||||
TryAcquireSRWLockExclusive :: proc(SRWLock: ^SRWLOCK) -> BOOL ---
|
||||
ReleaseSRWLockExclusive :: proc(SRWLock: ^SRWLOCK) ---
|
||||
AcquireSRWLockShared :: proc(SRWLock: ^SRWLOCK) ---
|
||||
TryAcquireSRWLockShared :: proc(SRWLock: ^SRWLOCK) -> BOOL ---
|
||||
ReleaseSRWLockShared :: proc(SRWLock: ^SRWLOCK) ---
|
||||
|
||||
InitializeConditionVariable :: proc(ConditionVariable: ^CONDITION_VARIABLE) ---
|
||||
WakeConditionVariable :: proc(ConditionVariable: ^CONDITION_VARIABLE) ---
|
||||
|
||||
@@ -63,7 +63,7 @@ PCONDITION_VARIABLE :: ^CONDITION_VARIABLE;
|
||||
PLARGE_INTEGER :: ^LARGE_INTEGER;
|
||||
PSRWLOCK :: ^SRWLOCK;
|
||||
|
||||
SOCKET :: distinct rawptr; // TODO
|
||||
SOCKET :: distinct uintptr; // TODO
|
||||
socklen_t :: c_int;
|
||||
ADDRESS_FAMILY :: USHORT;
|
||||
|
||||
@@ -147,7 +147,7 @@ WSA_FLAG_NO_HANDLE_INHERIT: DWORD : 0x80;
|
||||
WSADESCRIPTION_LEN :: 256;
|
||||
WSASYS_STATUS_LEN :: 128;
|
||||
WSAPROTOCOL_LEN: DWORD : 255;
|
||||
INVALID_SOCKET :: SOCKET(~uintptr(0));
|
||||
INVALID_SOCKET :: ~SOCKET(0);
|
||||
|
||||
WSAEACCES: c_int : 10013;
|
||||
WSAEINVAL: c_int : 10022;
|
||||
|
||||
Reference in New Issue
Block a user