Skip to content

Commit c787ae5

Browse files
committed
---
yaml --- r: 170815 b: refs/heads/try c: 956cab6 h: refs/heads/master i: 170813: e06e723 170811: 0122ba8 170807: 33ef6db 170799: d245f9b 170783: cc27a75 170751: 0924e0c v: v3
1 parent 2045be0 commit c787ae5

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 73a25f55ad748b4d3516417c711b99ce446591af
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 5b3cd3900ceda838f5798c30ab96ceb41f962534
5-
refs/heads/try: 2dcbdc1edac50af0f1a2796b1dfe2dd082f8190c
5+
refs/heads/try: 956cab6f97c1841e6f3f00acb6386f07eddfc25e
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/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/try/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)