Example #1
0
 public static void invalidateAll() {
   current = null;
   group = null;
   synchronized (threads) {
     Iterator iter = threads().iterator();
     while (iter.hasNext()) {
       ThreadInfo ti = (ThreadInfo) iter.next();
       ti.invalidate();
     }
   }
 }
Example #2
0
 public static void setCurrentThreadInfo(ThreadInfo tinfo) {
   current = tinfo;
   if (current != null) {
     current.invalidate();
   }
 }