arc
exclusive
shared_arc
methods for exclusive<T>
methods for port<T>
methods for chan<T>
methods for lock_and_signal
methods for condition
arc
- Create an atomically reference counted wrapper.clone
- Duplicate an atomically reference counted wrapper.exclusive
get
- Access the underlying data in an atomically reference counted wrapper.get_arc
shared_arc
arc
type arc<T: const send> = arc_destruct<T>
exclusive
type exclusive<T: send> = arc_destruct<ex_data<T>>
methods for exclusive<T>
clone
fn clone() -> exclusive<T>
with
unsafe fn with<U>(f: fn(sys::condition, x: &T) -> U) -> U
methods for port<T>
chan
fn chan() -> chan<T>
send
fn send(+v: T)
recv
fn recv() -> T
peek
fn peek() -> bool
methods for chan<T>
chan
fn chan() -> chan<T>
send
fn send(+v: T)
recv
fn recv() -> T
peek
fn peek() -> bool
methods for lock_and_signal
lock
unsafe fn lock<T>(f: fn() -> T) -> T
lock_cond
unsafe fn lock_cond<T>(f: fn(condition) -> T) -> T
methods for condition
wait
fn wait()
signal
fn signal() -> bool
arc
fn arc<T: const send>(-data: T) -> arc<T>
Create an atomically reference counted wrapper.
clone
fn clone<T: const send>(rc: &arc<T>) -> arc<T>
Duplicate an atomically reference counted wrapper.
The resulting two arc
objects will point to the same underlying data object. However, one of the arc
objects can be sent to another task, allowing them to share the underlying data.
exclusive
fn exclusive<T: send>(-data: T) -> exclusive<T>
get
fn get<T: const send>(rc: &a .arc<T>) -> &a .T
Access the underlying data in an atomically reference counted wrapper.
get_arc
fn get_arc<T: send const>(c: get_chan<T>) -> arc::arc<T>