Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Commits on Apr 24, 2019
[JBTHR-73] Allow thread enumeration
BIN +6 KB .DS_Store
Binary file not shown.
BIN +6 KB src/.DS_Store
Binary file not shown.
@@ -66,6 +66,8 @@
* @author <a href="mailto:david.lloyd@redhat.com">David M. Lloyd</a>
*/
public final class EnhancedQueueExecutor extends EnhancedQueueExecutorBase6 implements ManageableThreadPoolExecutorService {
private static final Thread[] NO_THREADS = new Thread[0];

static {
Version.getVersionString();
}
@@ -1357,6 +1359,16 @@ public int getPoolSize() {
return currentSizeOf(threadStatus);
}

/**
* Get an array containing an approximate snapshot of the currently running threads in
* this executor.
*
* @return an array of running (unterminated) threads (not {@code null})
*/
public Thread[] getRunningThreads() {
return runningThreads.toArray(NO_THREADS);
}

// =======================================================
// Pooled thread body
// =======================================================

No commit comments for this range

You can’t perform that action at this time.