コード例 #1
0
 public final void run() {
   if (firstRun) {
     plugin_prerun(); // plugin first time through
     firstRun = false;
   }
   while (state == RUNNING) {
     boolean xwakep = waker.waitForSignal();
     setAwakened(xwakep);
     plugin_cycle(); // do work
     if (isYielding) Thread.yield();
   }
 }
コード例 #2
0
 private void signalStateChange() {
   if (waker != null) {
     waker.signalNotify(waker.INTERNAL);
   }
 }
コード例 #3
0
 public void signalNotify(int event) {
   super.signalNotify(event);
   tm.trigger();
 }