Skip to content

Commit

Permalink
wakeAll futex linux
Browse files Browse the repository at this point in the history
  • Loading branch information
shayanhabibi committed Nov 26, 2021
1 parent 0ead72c commit fc0bb1c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion loony/utils/futex/futex_linux.nim
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,7 @@ proc wake*(monitor: pointer) {.inline.} =
# Returns the number of actually woken threads
# or a Posix error code (if negative)
# We discard as this is not needed and simplifies compat with Windows futex
discard sysFutex(monitor, FutexWakePrivate, 1)
discard sysFutex(monitor, FutexWakePrivate, 1)

proc wakeAll*(monitor: pointer) {.inline.} =
discard sysFutex(monitor, FutexWakePrivate, high(cint))

0 comments on commit fc0bb1c

Please sign in to comment.