Trait flexible_locks::UnsafeRawOsMutex [] [src]

pub trait UnsafeRawOsMutex {
    unsafe fn lock(mutex: *mut Self);
unsafe fn unlock(mutex: *mut Self); unsafe fn init(_mutex: *mut Self) { ... }
unsafe fn destroy(_mutex: *mut Self) { ... } }

A trait for unsafe raw mutual exclusion primitives.

Types implementing this trait are meant to be wrapped with [RawOsMutex], bringing them an automatic [RawMutex] implementation.

Required Methods

Acquire the raw mutex.

See [RawMutex::lock]

Release the raw mutex.

See [RawMutex::unlock]

Provided Methods

Initialize the raw mutex.

See [RawMutex::init].

Destroy the raw mutex.

See [RawMutex::destroy]

Implementations on Foreign Types

impl UnsafeRawOsMutex for pthread_mutex_t
[src]

[src]

[src]

[src]

[src]

Implementors