mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
Fix futex
This commit is contained in:
+1
-1
@@ -656,7 +656,7 @@ gb_internal void futex_wait(Futex *addr, Footex val) {
|
|||||||
for (;;) {
|
for (;;) {
|
||||||
int ret = syscall(SYS_futex, addr, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, val, NULL, NULL, 0);
|
int ret = syscall(SYS_futex, addr, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, val, NULL, NULL, 0);
|
||||||
if (ret == -1) {
|
if (ret == -1) {
|
||||||
if (errno != EAGAIN && errno != EINTR) {
|
if (errno != EAGAIN) {
|
||||||
perror("Futex wait");
|
perror("Futex wait");
|
||||||
GB_PANIC("Failed in futex wait!\n");
|
GB_PANIC("Failed in futex wait!\n");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user