Threaded::notify Синхронизация &reftitle.description; public boolThreaded::notify Отправляет уведомление указанному объекту. &reftitle.parameters; &no.function.parameters; &reftitle.returnvalues; &return.success; &reftitle.examples; Уведомления и ожидание synchronized(function($thread){ if (!$thread->done) $thread->wait(); }, $this); } } $my = new My(); $my->start(); /** отправить уведомление ожидающему потоку **/ $my->synchronized(function($thread){ $thread->done = true; $thread->notify(); }, $my); var_dump($my->join()); ?> ]]> &example.outputs;