public class ReaderWriterLock extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ReaderWriterLock.Test
The Test class is a unit test for the other code in the current file.
|
Constructor and Description |
---|
ReaderWriterLock() |
Modifier and Type | Method and Description |
---|---|
void |
readDone()
Release the lock.
|
void |
readRequest()
Request the read lock.
|
boolean |
readRequestImmediate()
This version of read() requests read access and returns true if you get
it.
|
void |
writeDone()
Release the lock.
|
void |
writeRequest()
Request the write lock.
|
boolean |
writeRequestImmediate()
This version of the write request returns false immediately (without
blocking) if any read or write operations are in progress and a write
isn't safe; otherwise, it returns true and acquires the resource.
|
public void readRequest()
public boolean readRequestImmediate()
public void readDone()
public void writeRequest()
public boolean writeRequestImmediate()
public void writeDone()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.