@@ -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
@@ -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) ---
+}