concurrency v5.0.3 (2023-04-12T14:20:47Z)
Dub
Repo
SharedGuard
concurrency
utils
Helper used in with() to easily access
shared
methods of a class
struct
SharedGuard (
T
)
if
(
is
(
T
== class)
) {
import
core
.
sync
.
mutex
:
Mutex
;
;
private public
T
reg
;
this
();
this(this)
;
static
SharedGuard
acquire
(T reg, Mutex mutex);
~this
();
}
Constructors
this
this
()
Undocumented in source.
Destructor
~this
~this
()
Undocumented in source.
Postblit
this(this)
this(this)
Undocumented in source.
Alias This
reg
Members
Static functions
acquire
SharedGuard
acquire
(T reg, Mutex mutex)
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
reg
T
reg
;
Undocumented in source.
Meta
Source
See Implementation
concurrency
utils
enums
NoVoid
isThreadSafeCallable
isThreadSafeFunction
functions
casWeak
closure
dynamicLoad
dynamicLoadRaw
resetScheduler
spin_yield
structs
Closure
SharedGuard
Helper used in with() to easily access shared methods of a class