|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.lang.ThreadLocal
gpars.ThreadLocalPools
class ThreadLocalPools extends ThreadLocal
Holds a thread-local stack of pools to allow for nested calls to ForkJoinPool.withPool() or GParsExecutorsPool.withPool()
| Constructor Summary | |
ThreadLocalPools()
|
|
| Method Summary | |
|---|---|
def
|
getCurrent()
Gives the current element |
protected List
|
initialValue()
|
void
|
leftShift(def pool)
Adds a new element |
void
|
pop()
Removes the top (last) element |
| Methods inherited from class ThreadLocal | |
|---|---|
| get, remove, set, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Constructor Detail |
|---|
ThreadLocalPools()
| Method Detail |
|---|
public def getCurrent()
protected List initialValue()
void leftShift(def pool)
void pop()
Groovy Documentation