MCPcopy Create free account
hub / github.com/ReadyTalk/avian / activeCount

Method activeCount

classpath/java/lang/ThreadGroup.java:55–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 }
54
55 public int activeCount() {
56 int allCount = Thread.activeCount();
57 Thread[] all = new Thread[allCount];
58 allCount = Thread.enumerate(all);
59
60 int count = 0;
61 for (int i = 0; i < allCount; ++i) {
62 if (parentOf(all[i].getThreadGroup())) {
63 ++ count;
64 }
65 }
66
67 return count;
68 }
69
70 public int enumerate(Thread[] threads) {
71 return enumerate(threads, true);

Callers

nothing calls this directly

Calls 4

activeCountMethod · 0.95
enumerateMethod · 0.95
parentOfMethod · 0.95
getThreadGroupMethod · 0.80

Tested by

no test coverage detected