Skip to content

Commit

Permalink
Add RwLock to mc-sgx-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-mobilecoin committed Jan 25, 2023
1 parent df59c3a commit 693e629
Show file tree
Hide file tree
Showing 5 changed files with 534 additions and 2 deletions.
2 changes: 2 additions & 0 deletions sync/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ mod poison;
pub use condvar::Condvar;
pub use mutex::{Mutex, MutexGuard};
pub use poison::{LockResult, PoisonError, TryLockError, TryLockResult};
pub use rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard};
mod rwlock;
mod sys;
1 change: 1 addition & 0 deletions sync/src/poison.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ pub(crate) struct Guard {
/// is held. The precise semantics for when a lock is poisoned is documented on
/// each lock, but once a lock is poisoned then all future acquisitions will
/// return this error.
///
/// [`Mutex`]: crate::Mutex
/// [`RwLock`]: crate::RwLock
pub struct PoisonError<T> {
Expand Down
Loading

0 comments on commit 693e629

Please sign in to comment.