Kone
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Kone
kone.coroutinesMutexes
/
dev.lounres.kone.coroutinesMutexes.implementations
/
KoneSundellTsigasReadWriteExclusion
Kone
Sundell
Tsigas
Read
Write
Exclusion
class
KoneSundellTsigasReadWriteExclusion
(
readPermits
:
UInt
=
UInt.MAX_VALUE
)
:
KoneReadWriteExclusion
(
source
)
Members
Members & Extensions
Constructors
Kone
Sundell
Tsigas
Read
Write
Exclusion
Link copied to clipboard
constructor
(
readPermits
:
UInt
=
UInt.MAX_VALUE
)
Types
Companion
Link copied to clipboard
object
Companion
Functions
as
Read
Semaphore
Link copied to clipboard
fun
KoneReadWriteExclusion
.
asReadSemaphore
(
)
:
KoneSemaphore
as
Write
Mutex
Link copied to clipboard
fun
KoneReadWriteExclusion
.
asWriteMutex
(
)
:
KoneMutualExclusion
await
Read
Lock
Link copied to clipboard
open
suspend override
fun
awaitReadLock
(
)
:
KoneLock
await
Write
Lock
Link copied to clipboard
open
suspend override
fun
awaitWriteLock
(
)
:
KoneLock
try
Or
Await
Read
Lock
Link copied to clipboard
suspend
fun
KoneReadWriteExclusion
.
tryOrAwaitReadLock
(
)
:
KoneLock
try
Or
Await
Write
Lock
Link copied to clipboard
suspend
fun
KoneReadWriteExclusion
.
tryOrAwaitWriteLock
(
)
:
KoneLock
try
Read
Locking
Link copied to clipboard
open
override
fun
tryReadLocking
(
)
:
KoneLock
?
try
Write
Locking
Link copied to clipboard
open
override
fun
tryWriteLocking
(
)
:
KoneLock
?
with
Read
Lock
Link copied to clipboard
inline suspend
fun
<
Result
>
KoneReadWriteExclusion
.
withReadLock
(
action
:
(
)
->
Result
)
:
Result
with
Write
Lock
Link copied to clipboard
inline suspend
fun
<
Result
>
KoneReadWriteExclusion
.
withWriteLock
(
action
:
(
)
->
Result
)
:
Result