public class MTE<T> extends STE<T>
Pool
for the management of threads.Constructor and Description |
---|
MTE()
Constructor for the MTE object.
|
MTE(int threads)
Construct an MTE object with the specified number of threads.
|
Modifier and Type | Method and Description |
---|---|
void |
forEach(Sequence<T> to,
Task<T> task)
Put the task to all acting (inner) structures.
|
int |
getThreads()
Return the number of threads in this MTE.
|
void |
setThreads(int threads)
Set the number of threads for this MTE object
|
void |
stop()
Kill all threads in the pool and mark the pool for garbage
collection.
|
public MTE()
public MTE(int threads)
threads
- the number of threadspublic void setThreads(int threads)
threads
- the new number of threadspublic int getThreads()
public void stop()
Copyright © 2016 Egothor. All Rights Reserved.