Skip to content
Tristan Hume edited this page Apr 23, 2012 · 2 revisions

#Concurrency.empty

##Syntax empty (variableReference) : boolean

##Description The empty function is used in a concurrent program. It returns true if the variableReference, which must be a condition variable, has no processes waiting for it. Processes join the queue of a condition variable by executing the wait statement, and are awakened by the signal statement.

##Status Part of the language and only conceptually part of the Concurrency unit.

This means that you can only call the function by calling empty, not by calling Concurrency.empty.

##See also condition.html, wait.html, signal.html, fork.html and monitor.html.

Clone this wiki locally