(PECL pthreads < 3.0.0)
Cond::wait — Wait for Condition
The Cond class has been removed in pthreads v3.
$timeout] ) : bool
Wait for a signal on a Condition Variable, optionally specifying a timeout to limit waiting time.
A boolean indication of success.
Örnek 1 Waiting for Conditions
/** PLEASE NOTE THIS EXAMPLE WILL CAUSE THE PROCESS TO HANG **/
$mutex = Mutex::create(true);
/** You cannot use the "new" keyword, a Cond is not a PHP object **/
$cond = Cond::create();
/** The caller must lock the associated Mutex before a call to broadcast **/
/** Always destroy Cond you have created **/
Yukarıdaki örneğin çıktısı: