concurrency ~master (2022-01-07T14:23: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
;
;
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
isThreadSafeFunction
functions
casWeak
closure
resetScheduler
spin_yield
structs
Closure
SharedGuard
Helper used in with() to easily access shared methods of a class