A new exclusive reference to a payload of type T constructed from args. Allocated on the GC to make sure its lifetime is infinite and therefore safe to pass to other threads.
A new exclusive reference to a payload. Allocated on the GC to make sure its lifetime is infinite and therefore safe to pass to other threads.
A reference counted exclusive object (see above).
Provides @safe exclusive access (via a mutex) to a payload of type T. Allows to share mutable data across threads safely.
D implementation of Rust's std::sync::Mutex