stanley-king 3 yıl önce
ebeveyn
işleme
ec2b103b80
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      helper/queue/iqueue.php

+ 3 - 1
helper/queue/iqueue.php

@@ -294,7 +294,7 @@ abstract class ILooper
                 Swoole\Coroutine::sleep(1);
             }
 
-            Log::record("wait running coroutine count = {$count} quit.",Log::DEBUG);
+            Log::record("wait running subcoroutine count = {$count} quit.",Log::DEBUG);
         }
         while($count > 0);
 
@@ -314,8 +314,10 @@ abstract class ILooper
             try
             {
                 if($this->_pause == 1) {
+                    Log::record("runlooper subcoroutine pause",Log::DEBUG);
                     $this->_pause = 2;
                     Swoole\Coroutine::suspend();
+                    Log::record("runlooper subcoroutine resume",Log::DEBUG);
                 }
                 if ($this->_stop) break;