|
@@ -243,11 +243,13 @@ abstract class ILooper
|
|
|
do{
|
|
|
Swoole\Coroutine::sleep(0.1);
|
|
|
} while($this->_pause == 1);
|
|
|
+ Log::record("runloop cid={$this->_cid}",Log::DEBUG);
|
|
|
}
|
|
|
|
|
|
public function resume()
|
|
|
{
|
|
|
if($this->_pause == 2) {
|
|
|
+ Log::record("runloop cid={$this->_cid}",Log::DEBUG);
|
|
|
Swoole\Coroutine::resume($this->_cid);
|
|
|
$this->_pause = 0;
|
|
|
}
|
|
@@ -262,6 +264,8 @@ abstract class ILooper
|
|
|
public function run()
|
|
|
{
|
|
|
$this->_cid = Swoole\Coroutine::getPcid();
|
|
|
+ Log::record("runloop cid={$this->_cid}",Log::DEBUG);
|
|
|
+
|
|
|
$queues = $this->mServer->scan();
|
|
|
while (true)
|
|
|
{
|