Extensions for java.util.concurrent.locks.ReentrantReadWriteLock
read
Executes the given action under the read lock of this lock.
fun
<
T
>
ReentrantReadWriteLock
.
read
(
action
:
(
)
->
T
)
:
T
write
Executes the given action under the write lock of this lock.
fun
<
T
>
ReentrantReadWriteLock
.
write
(
action
:
(
)
->
T
)
:
T