Add sync/channel_*.odin files

This commit is contained in:
gingerBill
2020-08-02 15:05:04 +01:00
parent 6d032e6f1a
commit 91ff3e5bca
2 changed files with 53 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
// +build linux, darwin
package sync
import "core:time"
raw_channel_wait_queue_wait_on :: proc(state: ^uintptr, timeout: time.Duration) {
// stub
}
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
}
}