mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +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
|
// stub
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
raw_channel_wait_queue_broadcast :: proc(q: ^Raw_Channel_Wait_Queue) {
|
raw_channel_wait_queue_broadcast :: proc(q: ^Raw_Channel_Wait_Queue) {
|
||||||
for x := q^; x != nil; x = x.next {
|
// stub
|
||||||
q^ = x.next;
|
|
||||||
// stub
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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