Lines Matching refs:threads
48 private static List<ThreadInfo> threads = Collections.synchronizedList(new ArrayList<ThreadInfo>());
67 threads.add(new ThreadInfo(thread));
74 synchronized (threads) {
79 // by a thread start event and by the initial call to threads()
81 threads.add(ti);
106 threads.remove(getThreadInfo(thread));
109 static List<ThreadInfo> threads() {
110 synchronized(threads) {
113 return new ArrayList<ThreadInfo>(threads);
120 synchronized (threads) {
121 for (ThreadInfo ti : threads()) {
177 synchronized (threads) {
178 for (ThreadInfo ti : threads()) {