public abstract class ResetManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_rcsid |
protected int |
involvedThreadCount
This is the count of the threads that care about this resource.
|
protected java.lang.String |
processID
Process ID
|
protected boolean |
resetRequired
Boolean which describes whether an event requiring reset has occurred.
|
protected int |
waitingThreads
This is the number of threads that are waiting for the reset.
|
| Constructor and Description |
|---|
ResetManager(java.lang.String processID)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
noteEvent()
Note a resettable event.
|
protected abstract void |
performResetLogic(IThreadContext tc,
java.lang.String processID)
Do the reset logic.
|
protected abstract void |
performWakeupLogic()
Do the wakeup logic.
|
void |
registerMe()
Register a thread with this reset manager.
|
boolean |
waitForReset(IThreadContext tc)
Enter "wait" state for current thread.
|
public static final java.lang.String _rcsid
protected final java.lang.String processID
protected volatile boolean resetRequired
protected int involvedThreadCount
protected volatile int waitingThreads
public void registerMe()
public void noteEvent()
public boolean waitForReset(IThreadContext tc) throws ManifoldCFException, java.lang.InterruptedException
ManifoldCFExceptionjava.lang.InterruptedExceptionprotected abstract void performResetLogic(IThreadContext tc, java.lang.String processID) throws ManifoldCFException
ManifoldCFExceptionprotected abstract void performWakeupLogic()