mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 09:24:33 +00:00
Minor changes to futex implementation on Linux
This commit is contained in:
@@ -656,7 +656,7 @@ gb_internal void futex_wait(Futex *addr, Footex val) {
|
||||
for (;;) {
|
||||
int ret = syscall(SYS_futex, addr, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, val, NULL, NULL, 0);
|
||||
if (ret == -1) {
|
||||
if (errno != EAGAIN) {
|
||||
if (errno != EAGAIN && errno != EINTR) {
|
||||
perror("Futex wait");
|
||||
GB_PANIC("Failed in futex wait!\n");
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user