Package org.robwork.sdurw
Class ThreadPool
- java.lang.Object
-
- org.robwork.sdurw.ThreadPool
-
public class ThreadPool extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ThreadPool()ThreadPool(int threads)ThreadPool(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddWork(SWIGTYPE_p_boost__functionT_void_fThreadPool_pF_t work)voiddelete()static longgetCPtr(ThreadPool obj)longgetNumberOfThreads()longgetQueueSize()booleanisStopping()voidstop()voidwaitForEmptyQueue()
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(ThreadPool obj)
-
delete
public void delete()
-
getNumberOfThreads
public long getNumberOfThreads()
-
stop
public void stop()
-
isStopping
public boolean isStopping()
-
addWork
public void addWork(SWIGTYPE_p_boost__functionT_void_fThreadPool_pF_t work)
-
getQueueSize
public long getQueueSize()
-
waitForEmptyQueue
public void waitForEmptyQueue()
-
-