MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / getThreads

Method getThreads

ij/src/main/java/ij/Prefs.java:758–766  ·  view source on GitHub ↗

Returns the number of threads used by PlugInFilters to process images and stacks.

()

Source from the content-addressed store, hash-verified

756
757 /** Returns the number of threads used by PlugInFilters to process images and stacks. */
758 public static int getThreads() {
759 if (threads==0) {
760 threads = getInt(THREADS, 0);
761 int processors = Runtime.getRuntime().availableProcessors();
762 if (threads<1 || threads>processors)
763 threads = processors;
764 }
765 return threads;
766 }
767
768 /** Sets the number of threads (1-32) used by PlugInFilters to process stacks. */
769 public static void setThreads(int n) {

Callers 8

runMethod · 0.95
filterMethod · 0.95
runMethod · 0.95
PlugInFilterRunnerMethod · 0.95
blur1DirectionMethod · 0.95
RankFiltersClass · 0.95

Calls 2

getIntMethod · 0.95
getRuntimeMethod · 0.45

Tested by

no test coverage detected