diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2023-11-22 12:58:00 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-22 12:58:00 +0000 |
| commit | 37e79f9cca3e8331876de59ba724f05bf8c79139 (patch) | |
| tree | 89c55406a0d0013027925769ce8066f8df121c1f /src/threading.cpp | |
| parent | a4c64002c5da4748e85c09c45193b36f8a104a53 (diff) | |
| parent | d9fab5e824b5caee48ed96cf76e0011f0cdf6742 (diff) | |
Merge pull request #2962 from FragmentedCurve/issue_2601
Return value of _umtx_op on FreeBSD wasn't checked correctly
Diffstat (limited to 'src/threading.cpp')
| -rw-r--r-- | src/threading.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/threading.cpp b/src/threading.cpp index 3ddc05b0a..74aa3eb7e 100644 --- a/src/threading.cpp +++ b/src/threading.cpp @@ -660,7 +660,7 @@ gb_internal void futex_broadcast(Futex *addr) { gb_internal void futex_wait(Futex *addr, Footex val) { for (;;) { int ret = _umtx_op(addr, UMTX_OP_WAIT_UINT, val, 0, NULL); - if (ret == 0) { + if (ret == -1) { if (errno == ETIMEDOUT || errno == EINTR) { continue; } |