zhubaomin
2024-09-11 5bfa227109b90b20b09345722b3232fac77a1ab1
pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/core/CoreThread.java
@@ -10,7 +10,7 @@
   
   private static CoreThread instance = new CoreThread() ;
   private static Long sleepBigBusy = 100L ;//大忙时(除了恒久任务,还有其他任务),核心线程暂停间隔
   private static Long sleepBigBusy = 100L ;//大忙时(除了恒久任务,还是其他任务),核心线程暂停间隔
   private static Long sleepSmallBusy = 500L ;//小忙时(只有恒久任务,无其他任务),核心线程暂停间隔
   
   private CoreThread(){
@@ -22,8 +22,8 @@
   
   /**
    * 设置暂停时长
    * @param sleepBigBusy 大忙时(除了恒久任务,还有其他任务),核心线程暂停间隔
    * @param sleepSmallBusy 小忙时(只有恒久任务,无其他任务),核心线程暂停间隔
    * @param sleepBigBusy 大忙时睡眠时长
    * @param sleepSmallBusy 小忙时睡眠时长
    */
   public void setSleep(Long sleepBigBusy, Long sleepSmallBusy){
      CoreThread.sleepBigBusy = sleepBigBusy ;
@@ -52,7 +52,7 @@
               while(n < count){
                  CoreTask task = (CoreTask)coreQueue.pop() ;
                  if(task != null){
                     task.excute();
                     task.execute();
                  }
                  n ++ ;
               }