method condition

Documentation for method condition assembled from the following types:

class Lock

From Lock

(Lock) method condition

Defined as:

my class ConditionVariable {
    method wait();
    method signal();
    method signal_all();
}
 
method condition(Lock:D: --> ConditionVariable:D)

Returns a condition variable. Compare https://web.stanford.edu/~ouster/cgi-bin/cs140-spring14/lecture.php?topic=locks or https://en.wikipedia.org/wiki/Monitor_%28synchronization%29 for background.

my $l = Lock.new;
$l.condition;

class X::Phaser::PrePost

From X::Phaser::PrePost

(X::Phaser::PrePost) method condition

method condition(--> Str:D)

Returns the part of the source code that describes the phaser condition.