pub fn new(data: T) -> Mutex<T> {
        rt::execution(|execution| Mutex {
            data: RefCell::new(data),
            lock: Cell::new(None),
            object: execution.objects.insert(Object::mutex()),
        })
    }
/// Creates a new mutex in an unlocked state ready for use.
Creates a new mutex in an unlocked state ready for use.
Creates a new mutex in an unlocked state ready for use .
pub fn new(data: T) -> Mutex<T> {
        rt::execution(|execution| Mutex {
            data: RefCell::new(data),
            lock: Cell::new(None),
            object: execution.objects.insert(Object::mutex()),
        })
    }
pub fn new ( data : T ) -> Mutex < T > { rt :: execution ( | execution | Mutex { data : RefCell :: new ( data ) , lock : Cell :: new ( None ) , object : execution . objects . insert ( Object :: mutex ( ) ) , } ) }
Creates a new mutex in an unlocked state ready for use.
Creates a new mutex in an unlocked state ready for use .
data
T
data
T