public abstract class ResetManager extends Object
Modifier and Type | Field and Description |
---|---|
static String |
_rcsid |
protected int |
involvedThreadCount
This is the count of the threads that care about this resource.
|
protected 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(String processID)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
noteEvent()
Note a resettable event.
|
protected abstract void |
performResetLogic(IThreadContext tc,
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 String _rcsid
protected final String processID
protected volatile boolean resetRequired
protected int involvedThreadCount
protected volatile int waitingThreads
public ResetManager(String processID)
public void registerMe()
public void noteEvent()
public boolean waitForReset(IThreadContext tc) throws ManifoldCFException, InterruptedException
ManifoldCFException
InterruptedException
protected abstract void performResetLogic(IThreadContext tc, String processID) throws ManifoldCFException
ManifoldCFException
protected abstract void performWakeupLogic()