public class ThreadSuspendable extends ThreadLocalTransferHelper implements ISuspendable
| Modifier and Type | Field and Description | 
|---|---|
protected IFuture<?> | 
future
The future. 
 | 
THREADLOCALS, valsSUSPENDABLE| Constructor and Description | 
|---|
ThreadSuspendable()  | 
| Modifier and Type | Method and Description | 
|---|---|
long | 
getDefaultTimeout()
Get the default timeout. 
 | 
java.lang.Object | 
getMonitor()
Get the monitor for waiting. 
 | 
void | 
resume(Future<?> future)
Resume the execution of the suspendable. 
 | 
void | 
suspend(Future<?> future,
       long timeout,
       boolean realtime)
Suspend the execution of the suspendable. 
 | 
addThreadLocal, afterSwitch, beforeSwitch, removeThreadLocal, restoreValues, saveValuesprotected IFuture<?> future
public void suspend(Future<?> future, long timeout, boolean realtime)
suspend in interface ISuspendabletimeout - The timeout.realtime - Flag if timeout is realtime (in contrast to simulation time).future - The future to wait for.public void resume(Future<?> future)
resume in interface ISuspendablefuture - The future that issues the resume.public java.lang.Object getMonitor()
getMonitor in interface ISuspendablepublic long getDefaultTimeout()