예제 #1
0
 private void _submitQuery(WorkerRunnable runnable) {
   attachRunnable(runnable);
   synchronized (runQueue) {
     runQueue.add(runnable);
     runQueue.notify();
   }
 }
예제 #2
0
 public static void pushIn(final String tmpMsg) {
   if (isPopup) {
     final Object[] para = {tmpMsg, Thread.currentThread().getStackTrace()};
     synchronized (array) {
       array.addLast(para);
       array.notify();
     }
   } else {
     if (LogManager.INI_DEBUG_ON) {
       System.err.println("Exception : " + tmpMsg);
       final StackTraceElement[] ste = Thread.currentThread().getStackTrace();
       final int size = ste.length;
       for (int i = 0; i < size; i++) {
         System.err.print("\tat : " + ste[i] + "\n");
       }
     }
   }
 }