예제 #1
0
파일: TObject.java 프로젝트: leobm/teavm
 @Override
 public void interrupted() {
   if (performed) {
     return;
   }
   performed = true;
   if (timerId >= 0) {
     Platform.killSchedule(timerId);
     timerId = -1;
   }
   Platform.postpone(() -> callback.error(new TInterruptedException()));
 }
예제 #2
0
파일: TObject.java 프로젝트: leobm/teavm
 @Override
 public void run() {
   if (performed) {
     return;
   }
   performed = true;
   if (timerId >= 0) {
     Platform.killSchedule(timerId);
     timerId = -1;
   }
   TThread.setCurrentThread(currentThread);
   monitorEnterWait(obj, lockCount, callback);
 }