(PECL pthreads >= 3.0.0)
Threaded::notifyOne — Sincronizar
Envía una notificación al objeto referenciado. Esto desbloquea al menos uno de los threads bloqueados (a diferencia de desbloquearlos todos, como ocurre con Threaded::notify()).
Esta función no contiene ningún parámetro.
Ejemplo #1 Notificaciones y espera
<?php
class My extends Thread {
    public function run() {
        /** causa que este thread espere **/
        $this->synchronized(function($thread){
            if (!$thread->done)
                $this->wait();
        }, $this);
    }
}
$my = new My();
$my->start();
/** envía una notificación al thread en espera **/
$my->synchronized(function($thread){
    $thread->done = true;
    $thread->notifyOne();
}, $my);
var_dump($my->join());
?>El ejemplo anterior mostrará:
bool(true)
