mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Add define for darwin
This commit is contained in:
@@ -641,6 +641,7 @@ gb_internal void futex_broadcast(Futex *addr) {
|
|||||||
|
|
||||||
gb_internal void futex_wait(Futex *addr, Footex val) {
|
gb_internal void futex_wait(Futex *addr, Footex val) {
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
enum { ULF_WAKE_ALL = 0x00000100 };
|
||||||
int ret = __ulock_wait(UL_COMPARE_AND_WAIT | ULF_NO_ERRNO | ULF_WAKE_ALL, addr, val, 0);
|
int ret = __ulock_wait(UL_COMPARE_AND_WAIT | ULF_NO_ERRNO | ULF_WAKE_ALL, addr, val, 0);
|
||||||
if (ret >= 0) {
|
if (ret >= 0) {
|
||||||
if (*addr != val) {
|
if (*addr != val) {
|
||||||
|
|||||||
Reference in New Issue
Block a user