Struct mioco::sync::Mutex [] [src]

pub struct Mutex<T: ?Sized> { /* fields omitted */ }

A Mutex

Based on std::sync::Mutex.

Calls mioco::yield_now() on contention. (NOTE: Subject to potential change).

Works both inside and outside of mioco.

Methods

impl<T> Mutex<T>
[src]

Creates a new instance of an Mutex which is unlocked.

impl<T: ?Sized> Mutex<T>
[src]

Get a reference to raw std::sync::Mutex.

Use it to perform operations outside of mioco coroutines.

Acquire a mutex, blocking the current coroutine until it is able to do so.

Attempt to acquire this lock.

Trait Implementations

impl<T: ?Sized + Debug + 'static> Debug for Mutex<T>
[src]

Formats the value using the given formatter.