diff options
| author | bors <bors@rust-lang.org> | 2014-08-30 19:51:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-08-30 19:51:25 +0000 |
| commit | f2973665935161bb2b2eca3f41c33a4fd2fe82c4 (patch) | |
| tree | 285aa850b2763a426fdd2a874d100261de3d7024 /src/libsync/lock.rs | |
| parent | cbacdbc5f3bc4f401a96177df8efd2eb765e8799 (diff) | |
| parent | d15d55973946f8f582ba69b1789b5b5d35da5b2d (diff) | |
| download | rust-f2973665935161bb2b2eca3f41c33a4fd2fe82c4.tar.gz rust-f2973665935161bb2b2eca3f41c33a4fd2fe82c4.zip | |
auto merge of #16859 : alexcrichton/rust/snapshots, r=huonw
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> { |
