lib/polyphony/core/sync.rb
# Waits for the condition variable to be signalled.
#
# @param mutex [Polyphony::Mutex] mutex to release while waiting for signal
# @param timeout [Number, nil] timeout in seconds (currently not implemented)
# @return [void]
Waits for the condition variable to be signalled.
Waits for the condition variable to be signalled .
def wait(mutex, _timeout = nil)
      mutex.conditional_release
      @queue << Fiber.current
      Polyphony.backend_wait_event(true)
      mutex.conditional_reacquire
    end
def wait ( mutex , _timeout = nil ) mutex . conditional_release @queue << Fiber . current Polyphony . backend_wait_event ( true ) mutex . conditional_reacquire end
Waits for the condition variable to be signalled.
Waits for the condition variable to be signalled .
None
void
mutex
mutex to release while waiting for signal
mutex to release while waiting for signal
_timeout
<not_specific>
timeout
<not_specific>
timeout in seconds (currently not implemented)
timeout in seconds ( currently not implemented )