Skip to content

Commit e5133ce

Browse files
committed
---
yaml --- r: 168935 b: refs/heads/snap-stage3 c: 956cab6 h: refs/heads/master i: 168933: 1be3476 168931: 8571f79 168927: 05071d3 v: v3
1 parent 810d128 commit e5133ce

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 5e21e17d9638d14af41e27e5ca9a21c8a1bc0170
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 2dcbdc1edac50af0f1a2796b1dfe2dd082f8190c
4+
refs/heads/snap-stage3: 956cab6f97c1841e6f3f00acb6386f07eddfc25e
55
refs/heads/try: 5204084bd2e46af7cc6e0147430e44dd0d657bbb
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/libstd/sync/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub use alloc::arc::{Arc, Weak};
2222
pub use self::mutex::{Mutex, MutexGuard, StaticMutex};
2323
pub use self::mutex::MUTEX_INIT;
2424
pub use self::rwlock::{RwLock, StaticRwLock, RW_LOCK_INIT};
25-
pub use self::rwlock::{RWLockReadGuard, RWLockWriteGuard};
25+
pub use self::rwlock::{RwLockReadGuard, RWLockWriteGuard};
2626
pub use self::condvar::{Condvar, StaticCondvar, CONDVAR_INIT};
2727
pub use self::once::{Once, ONCE_INIT};
2828
pub use self::semaphore::{Semaphore, SemaphoreGuard};

branches/snap-stage3/src/libstd/sync/rwlock.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ impl<T: Send + Sync> RwLock<T> {
153153
/// The failure will occur immediately after the lock has been acquired.
154154
#[inline]
155155
#[stable]
156-
pub fn read(&self) -> LockResult<RWLockReadGuard<T>> {
156+
pub fn read(&self) -> LockResult<RwLockReadGuard<T>> {
157157
unsafe { self.inner.lock.read() }
158-
RWLockReadGuard::new(&*self.inner, &self.data)
158+
RwLockReadGuard::new(&*self.inner, &self.data)
159159
}
160160

161161
/// Attempt to acquire this lock with shared read access.
@@ -175,9 +175,9 @@ impl<T: Send + Sync> RwLock<T> {
175175
/// acquired.
176176
#[inline]
177177
#[stable]
178-
pub fn try_read(&self) -> TryLockResult<RWLockReadGuard<T>> {
178+
pub fn try_read(&self) -> TryLockResult<RwLockReadGuard<T>> {
179179
if unsafe { self.inner.lock.try_read() } {
180-
Ok(try!(RWLockReadGuard::new(&*self.inner, &self.data)))
180+
Ok(try!(RwLockReadGuard::new(&*self.inner, &self.data)))
181181
} else {
182182
Err(TryLockError::WouldBlock)
183183
}
@@ -245,9 +245,9 @@ impl StaticRwLock {
245245
/// See `RwLock::read`.
246246
#[inline]
247247
#[unstable = "may be merged with RwLock in the future"]
248-
pub fn read(&'static self) -> LockResult<RWLockReadGuard<'static, ()>> {
248+
pub fn read(&'static self) -> LockResult<RwLockReadGuard<'static, ()>> {
249249
unsafe { self.lock.read() }
250-
RWLockReadGuard::new(self, &DUMMY.0)
250+
RwLockReadGuard::new(self, &DUMMY.0)
251251
}
252252

253253
/// Attempt to acquire this lock with shared read access.
@@ -256,9 +256,9 @@ impl StaticRwLock {
256256
#[inline]
257257
#[unstable = "may be merged with RwLock in the future"]
258258
pub fn try_read(&'static self)
259-
-> TryLockResult<RWLockReadGuard<'static, ()>> {
259+
-> TryLockResult<RwLockReadGuard<'static, ()>> {
260260
if unsafe { self.lock.try_read() } {
261-
Ok(try!(RWLockReadGuard::new(self, &DUMMY.0)))
261+
Ok(try!(RwLockReadGuard::new(self, &DUMMY.0)))
262262
} else {
263263
Err(TryLockError::WouldBlock)
264264
}

0 commit comments

Comments
 (0)