Rename futex_wake and futex_wake_all to futex_signal and futex_broadcast

This commit is contained in:
gingerBill
2021-10-11 16:40:23 +01:00
parent 46b33854c9
commit d97c6a7657
6 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ _futex_wait_with_timeout :: proc(f: ^Futex, expected: u32, duration: time.Durati
}
_futex_wake_single :: proc(f: ^Futex) {
_futex_signal :: proc(f: ^Futex) {
loop: for {
s := __ulock_wake(UL_COMPARE_AND_WAIT | ULF_NO_ERRNO, f, 0)
if s >= 0 {
@@ -63,7 +63,7 @@ _futex_wake_single :: proc(f: ^Futex) {
}
}
_futex_wake_all :: proc(f: ^Futex) {
_futex_broadcast :: proc(f: ^Futex) {
loop: for {
s := __ulock_wake(UL_COMPARE_AND_WAIT | ULF_NO_ERRNO | ULF_WAKE_ALL, f, 0)
if s >= 0 {