Skip to content

Commit f9aaee2

Browse files
committed
---
yaml --- r: 169407 b: refs/heads/master c: 956cab6 h: refs/heads/master i: 169405: ff97a66 169403: 0a1acf1 169399: 0ff818e 169391: 0adb44c 169375: bfa4918 169343: ede0ac3 v: v3
1 parent 4468583 commit f9aaee2

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,5 +1,5 @@
11
---
2-
refs/heads/master: 2dcbdc1edac50af0f1a2796b1dfe2dd082f8190c
2+
refs/heads/master: 956cab6f97c1841e6f3f00acb6386f07eddfc25e
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 5b3cd3900ceda838f5798c30ab96ceb41f962534
55
refs/heads/try: 5204084bd2e46af7cc6e0147430e44dd0d657bbb

trunk/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};

trunk/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)