mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-18 20:40:28 +00:00
Add sys/windows/synchronization.odin
This commit is contained in:
@@ -11,10 +11,6 @@ raw_channel_wait_queue_signal :: proc(q: ^Raw_Channel_Wait_Queue) {
|
||||
// stub
|
||||
}
|
||||
|
||||
|
||||
raw_channel_wait_queue_broadcast :: proc(q: ^Raw_Channel_Wait_Queue) {
|
||||
for x := q^; x != nil; x = x.next {
|
||||
q^ = x.next;
|
||||
// stub
|
||||
}
|
||||
// stub
|
||||
}
|
||||
|
||||
10
core/sys/windows/synchronization.odin
Normal file
10
core/sys/windows/synchronization.odin
Normal file
@@ -0,0 +1,10 @@
|
||||
package sys_windows
|
||||
|
||||
foreign import Synchronization "system:Synchronization.lib"
|
||||
|
||||
@(default_calling_convention="c")
|
||||
foreign Synchronization {
|
||||
WaitOnAddress :: proc(Address: PVOID, CompareAddress: PVOID, AddressSize: SIZE_T, dwMilliseconds: DWORD) -> BOOL ---
|
||||
WakeByAddressSingle :: proc(Address: PVOID) ---
|
||||
WakeByAddressAll :: proc(Address: PVOID) ---
|
||||
}
|
||||
Reference in New Issue
Block a user