|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.aspectj.org.eclipse.jdt.internal.core.search.indexing.ReadWriteMonitor
public class ReadWriteMonitor
Monitor ensuring no more than one writer working concurrently. Multiple readers are allowed to perform simultaneously.
| Constructor Summary | |
|---|---|
ReadWriteMonitor()
|
|
| Method Summary | |
|---|---|
void |
enterRead()
Concurrent reading is allowed Blocking only when already writing. |
void |
enterWrite()
Only one writer at a time is allowed to perform Blocking only when already writing or reading. |
void |
exitRead()
Only notify waiting writer(s) if last reader |
boolean |
exitReadEnterWrite()
Atomic exitRead/enterWrite: Allows to keep monitor in between exit read and next enter write. |
void |
exitWrite()
When writing is over, all readers and possible writers are granted permission to restart concurrently |
void |
exitWriteEnterRead()
Atomic exitWrite/enterRead: Allows to keep monitor in between exit write and next enter read. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ReadWriteMonitor()
| Method Detail |
|---|
public void enterRead()
public void enterWrite()
public void exitRead()
public void exitWrite()
public boolean exitReadEnterWrite()
public void exitWriteEnterRead()
synchronized(monitor) {
monitor.exitWrite();
monitor.enterRead();
}
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||