Package com.mchange.v2.lock
Class SimpleSharedUseExclusiveUseLock
- java.lang.Object
-
- com.mchange.v2.lock.SimpleSharedUseExclusiveUseLock
-
- All Implemented Interfaces:
SharedUseExclusiveUseLock
public class SimpleSharedUseExclusiveUseLock extends java.lang.Object implements SharedUseExclusiveUseLock
NONREENTRANT!!! also... would be more efficient if we segregated readers and writers into separate wait sets.
-
-
Constructor Summary
Constructors Constructor Description SimpleSharedUseExclusiveUseLock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acquireExclusive()
void
acquireShared()
void
relinquishExclusive()
void
relinquishShared()
-
-
-
Method Detail
-
acquireShared
public void acquireShared() throws java.lang.InterruptedException
- Specified by:
acquireShared
in interfaceSharedUseExclusiveUseLock
- Throws:
java.lang.InterruptedException
-
relinquishShared
public void relinquishShared()
- Specified by:
relinquishShared
in interfaceSharedUseExclusiveUseLock
-
acquireExclusive
public void acquireExclusive() throws java.lang.InterruptedException
- Specified by:
acquireExclusive
in interfaceSharedUseExclusiveUseLock
- Throws:
java.lang.InterruptedException
-
relinquishExclusive
public void relinquishExclusive()
- Specified by:
relinquishExclusive
in interfaceSharedUseExclusiveUseLock
-
-