Groovy Documentation

gpars
[Groovy] Class ThreadLocalPools

java.lang.Object
  java.lang.ThreadLocal
      gpars.ThreadLocalPools

final class ThreadLocalPools
extends ThreadLocal

Holds a thread-local stack of pools to allow for nested calls to ForkJoinPool.withPool() or GParsExecutorsPool.withPool()

Authors:
Vaclav Pech Date: Dec 15, 2009


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
 

Method Detail

getCurrent

def getCurrent()
Gives the current element


initialValue

protected List initialValue()


leftShift

void leftShift(def pool)
Adds a new element


pop

void pop()
Removes the top (last) element


 

Groovy Documentation