diff options
Diffstat (limited to 'src/libsync/lock.rs')
| -rw-r--r-- | src/libsync/lock.rs | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/libsync/lock.rs b/src/libsync/lock.rs index e1cae6c62d5..08421d24fbb 100644 --- a/src/libsync/lock.rs +++ b/src/libsync/lock.rs @@ -180,7 +180,6 @@ pub struct Mutex<T> { /// An guard which is created by locking a mutex. Through this guard the /// underlying data can be accessed. -#[cfg(not(stage0))] pub struct MutexGuard<'a, T:'a> { // FIXME #12808: strange name to try to avoid interfering with // field accesses of the contained type via Deref @@ -190,17 +189,6 @@ pub struct MutexGuard<'a, T:'a> { pub cond: Condvar<'a>, } -/// stage0 only -#[cfg(stage0)] -pub struct MutexGuard<'a, T> { - // FIXME #12808: strange name to try to avoid interfering with - // field accesses of the contained type via Deref - _data: &'a mut T, - /// Inner condition variable connected to the locked mutex that this guard - /// was created from. This can be used for atomic-unlock-and-deschedule. - pub cond: Condvar<'a>, -} - impl<T: Send> Mutex<T> { /// Creates a new mutex to protect the user-supplied data. pub fn new(user_data: T) -> Mutex<T> { @@ -292,7 +280,6 @@ pub struct RWLock<T> { /// A guard which is created by locking an rwlock in write mode. Through this /// guard the underlying data can be accessed. -#[cfg(not(stage0))] pub struct RWLockWriteGuard<'a, T:'a> { // FIXME #12808: strange name to try to avoid interfering with // field accesses of the contained type via Deref @@ -302,20 +289,8 @@ pub struct RWLockWriteGuard<'a, T:'a> { pub cond: Condvar<'a>, } -/// stage0 only -#[cfg(stage0)] -pub struct RWLockWriteGuard<'a, T> { - // FIXME #12808: strange name to try to avoid interfering with - // field accesses of the contained type via Deref - _data: &'a mut T, - /// Inner condition variable that can be used to sleep on the write mode of - /// this rwlock. - pub cond: Condvar<'a>, -} - /// A guard which is created by locking an rwlock in read mode. Through this /// guard the underlying data can be accessed. -#[cfg(not(stage0))] pub struct RWLockReadGuard<'a, T:'a> { // FIXME #12808: strange names to try to avoid interfering with // field accesses of the contained type via Deref @@ -323,15 +298,6 @@ pub struct RWLockReadGuard<'a, T:'a> { _guard: raw::RWLockReadGuard<'a>, } -/// Stage0 only -#[cfg(stage0)] -pub struct RWLockReadGuard<'a, T> { - // FIXME #12808: strange names to try to avoid interfering with - // field accesses of the contained type via Deref - _data: &'a T, - _guard: raw::RWLockReadGuard<'a>, -} - impl<T: Send + Sync> RWLock<T> { /// Create a reader/writer lock with the supplied data. pub fn new(user_data: T) -> RWLock<T> { |
