atavism.server.util
Class SQThreadPool
java.lang.Object
atavism.server.util.SQThreadPool
- All Implemented Interfaces:
- java.lang.Runnable
public class SQThreadPool
- extends java.lang.Object
- implements java.lang.Runnable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
selfPool
protected static java.lang.ThreadLocal<SQThreadPool> selfPool
threadStatus
protected static java.lang.ThreadLocal<atavism.server.util.SQThreadPool.ThreadStatus> threadStatus
sq
protected SquareQueue sq
callback
protected SQCallback callback
total
protected int total
running
protected int running
blocking
protected int blocking
threadId
protected int threadId
SQThreadPool
public SQThreadPool(SquareQueue sq,
SQCallback callback)
getRunningPool
public static SQThreadPool getRunningPool()
runningThreadWillBlock
public void runningThreadWillBlock()
doneBlocking
public void doneBlocking()
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
getSquareQueue
public SquareQueue getSquareQueue()
main
public static void main(java.lang.String[] args)