예제 #1
0
 public bool needsPause()
 {
     if (slowTaskDetector == null)
     {
         return(false);
     }
     return(slowTaskDetector.checkWithinTimeLimit());
 }
예제 #2
0
 public static bool safeCheckTimeLimit(this SlowTaskDetector task)
 {
     if (task == null)
     {
         return(true);
     }
     return(task.checkWithinTimeLimit());
 }
예제 #3
0
 public void checkRepaint()
 {
     if (repaintTrigger == null)
     {
         return;
     }
     if (repaintTrigger.checkWithinTimeLimit())
     {
         return;
     }
     repaintWindow();
 }