toggle menu
korge-root
5.1.0
common
darwin
js
jvmAndroid
switch theme
search in API
korge-foundation
/
korlibs.datastructure.lock
/
Lock
Lock
common
darwin
js
jvmAndroid
expect
class
Lock
:
BaseLock
Reentrant typical lock.
actual
class
Lock
:
BaseLock
actual
class
Lock
:
BaseLock
actual
class
Lock
:
BaseLock
Members
Members & Extensions
Constructors
Lock
Link copied to clipboard
common
darwin
js
jvmAndroid
expect
constructor
(
)
actual
constructor
(
)
actual
constructor
(
)
actual
constructor
(
)
Properties
locked
Link copied to clipboard
js
var
locked
:
Boolean
Functions
invoke
Link copied to clipboard
common
darwin
js
jvmAndroid
expect
inline operator
fun
<
T
>
invoke
(
callback
:
(
)
->
T
)
:
T
actual
inline operator
fun
<
T
>
invoke
(
callback
:
(
)
->
T
)
:
T
actual
inline operator
fun
<
T
>
invoke
(
callback
:
(
)
->
T
)
:
T
actual
inline operator
fun
<
T
>
invoke
(
callback
:
(
)
->
T
)
:
T
notify
Link copied to clipboard
common
darwin
js
jvmAndroid
expect
open
override
fun
notify
(
unit
:
Unit
)
actual
open
override
fun
notify
(
unit
:
Unit
)
actual
open
override
fun
notify
(
unit
:
Unit
)
actual
open
override
fun
notify
(
unit
:
Unit
)
wait
Link copied to clipboard
common
darwin
js
jvmAndroid
expect
open
override
fun
wait
(
time
:
TimeSpan
)
:
Boolean
actual
open
override
fun
wait
(
time
:
TimeSpan
)
:
Boolean
actual
open
override
fun
wait
(
time
:
TimeSpan
)
:
Boolean
actual
open
override
fun
wait
(
time
:
TimeSpan
)
:
Boolean
wait
Link copied to clipboard
fun
BaseLock
.
wait
(
time
:
TimeSpan
,
precise
:
Boolean
)
:
Boolean
wait
Precise
Link copied to clipboard
fun
BaseLock
.
waitPrecise
(
time
:
TimeSpan
)
:
Boolean