Struct sgx_tstd::sync::SgxThreadRwLock[][src]

pub struct SgxThreadRwLock { /* fields omitted */ }

An OS-based reader-writer lock.

This structure is entirely unsafe and serves as the lowest layer of a cross-platform binding of system rwlocks. It is recommended to use the safer types at the top level of this crate instead of this type.

Methods

impl SgxThreadRwLock
[src]

Creates a new reader-writer lock for use.

Acquires shared access to the underlying lock, blocking the current thread to do so.

Attempts to acquire shared access to this lock, returning whether it succeeded or not.

This function does not block the current thread.

Acquires write access to the underlying lock, blocking the current thread to do so.

Attempts to acquire exclusive access to this lock, returning whether it succeeded or not.

This function does not block the current thread.

Unlocks previously acquired shared access to this lock.

Unlocks previously acquired exclusive access to this lock.

Destroys OS-related resources with this RWLock.

Trait Implementations

impl Send for SgxThreadRwLock
[src]

impl Sync for SgxThreadRwLock
[src]