Scheduler.newCondition

Creates a Condition variable analog for signaling.

Creates a new Condition variable analog which is used to check for and to signal the addition of messages to a thread's message queue. Like yield, some schedulers may need to define custom behavior so that calls to Condition.wait() yield to another thread when no new messages are available instead of blocking.

interface Scheduler
nothrow
Condition
newCondition
(
Mutex m
)

Parameters

m Mutex

The Mutex that will be associated with this condition. It will be locked prior to any operation on the condition, and so in some cases a Scheduler may need to hold this reference and unlock the mutex before yielding execution to another logical thread.

Meta