gatewayworker在events的onWorkerStart回调中如何获取到worker进程,避免多进程多个定时器并发启动的问题
问题代码 class Events{public static function onWorkerStart(){ Timer::add(1, function(){ //echo \"timer:\".time().\"\\n\"; list($msec, $sec) = explode(\' \', microtime()); $msectime = (float) sprintf(\'%.0f\', (flo