Beispiel #1
0
 private void _submitQuery(WorkerRunnable runnable) {
   attachRunnable(runnable);
   synchronized (runQueue) {
     runQueue.add(runnable);
     runQueue.notify();
   }
 }
 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");
       }
     }
   }
 }