ca.nengo.util.impl
Class GPUNodeThreadPool

java.lang.Object
  extended by ca.nengo.util.impl.NodeThreadPool
      extended by ca.nengo.util.impl.GPUNodeThreadPool

public class GPUNodeThreadPool
extends NodeThreadPool


Field Summary
protected  Node[] myGPUNodes
           
protected  java.util.concurrent.locks.Condition myGPUThreadCondition
           
protected  java.util.concurrent.locks.Lock myGPUThreadLock
           
protected  boolean myGPUThreadSleeping
           
protected  GPUThread myNativeThread
           
protected  int myNumGPUNodes
           
protected  int mySignal
           
static boolean myUseGPU
           
protected  int oldNumThreads
           
 
Fields inherited from class ca.nengo.util.impl.NodeThreadPool
defaultNumThreads, isSleeping, myEndTime, myKill, myLock, myNodeArray, myNodes, myNodeThreads, myNumNodesProcessed, myNumNodesRequired, myNumThreads, myStartTime
 
Constructor Summary
GPUNodeThreadPool(Node[] nodes)
           
 
Method Summary
 void finishedGPUNodes()
           
static boolean getUseGPU()
           
protected  void initialize(Node[] nodes)
           
 void kill()
           
static void setUseGPU(boolean value)
           
 void sleep()
           
 void step(float startTime, float endTime)
           
 
Methods inherited from class ca.nengo.util.impl.NodeThreadPool
finishedANode, finishedRun, getEndTime, getNextNode, getNumThreads, getStartTime, isMultithreading, setNumThreads, turnOffMultithreading, waitForThreads
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myUseGPU

public static boolean myUseGPU

myNativeThread

protected GPUThread myNativeThread

myGPUThreadLock

protected java.util.concurrent.locks.Lock myGPUThreadLock

myGPUThreadCondition

protected java.util.concurrent.locks.Condition myGPUThreadCondition

myGPUThreadSleeping

protected boolean myGPUThreadSleeping

myGPUNodes

protected Node[] myGPUNodes

myNumGPUNodes

protected int myNumGPUNodes

oldNumThreads

protected int oldNumThreads

mySignal

protected int mySignal
Constructor Detail

GPUNodeThreadPool

public GPUNodeThreadPool(Node[] nodes)
Method Detail

setUseGPU

public static void setUseGPU(boolean value)

getUseGPU

public static boolean getUseGPU()

sleep

public void sleep()

initialize

protected void initialize(Node[] nodes)
Overrides:
initialize in class NodeThreadPool

step

public void step(float startTime,
                 float endTime)
Overrides:
step in class NodeThreadPool

kill

public void kill()
Overrides:
kill in class NodeThreadPool

finishedGPUNodes

public void finishedGPUNodes()