public class Parallel extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Parallel.Looper |
Modifier and Type | Field and Description |
---|---|
static String |
NUM_THREADS |
Constructor and Description |
---|
Parallel() |
Modifier and Type | Method and Description |
---|---|
static int |
getNumCores() |
static int |
getNumThreads() |
static void |
loop(int from,
int to,
int numThreads,
Parallel.Looper looper) |
static void |
loop(int from,
int to,
Parallel.Looper looper) |
static void |
run(Runnable... runnables) |
static void |
setNumThreads(int numThreads) |
public static final String NUM_THREADS
public static int getNumThreads()
public static void setNumThreads(int numThreads)
public static int getNumCores()
public static void run(Runnable... runnables)
public static void loop(int from, int to, Parallel.Looper looper)
public static void loop(int from, int to, int numThreads, Parallel.Looper looper)
Copyright © 2024. All rights reserved.