Skip to content

Commit 2fe45ac

Browse files
olsonjefferybrson
authored andcommitted
---
yaml --- r: 28396 b: refs/heads/try c: 9ee7b31 h: refs/heads/master v: v3
1 parent 634e837 commit 2fe45ac

File tree

2 files changed

+10
-10
lines changed

2 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: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5-
refs/heads/try: 2f32c0d5c34d0bd5c94b7905ebb2916ec94761e4
5+
refs/heads/try: 9ee7b31414fce48403daa19904a7097b9a77baea
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df

branches/try/src/libstd/sync.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ impl<Q: Send> &Sem<Q> {
9696
state.count -= 1;
9797
if state.count < 0 {
9898
// Create waiter nobe.
99-
let (signal_end, wait_end) = pipes::oneshot();
99+
let (SignalEnd, WaitEnd) = pipes::oneshot();
100100
// Tell outer scope we need to block.
101-
waiter_nobe = Some(wait_end);
101+
waiter_nobe = Some(WaitEnd);
102102
// Enqueue ourself.
103-
state.waiters.tail.send(signal_end);
103+
state.waiters.tail.send(SignalEnd);
104104
}
105105
}
106106
}
@@ -202,9 +202,9 @@ impl &Condvar {
202202
*/
203203
fn wait_on(condvar_id: uint) {
204204
// Create waiter nobe.
205-
let (signal_end, wait_end) = pipes::oneshot();
206-
let mut wait_end = Some(wait_end);
207-
let mut signal_end = Some(signal_end);
205+
let (SignalEnd, WaitEnd) = pipes::oneshot();
206+
let mut WaitEnd = Some(WaitEnd);
207+
let mut SignalEnd = Some(SignalEnd);
208208
let mut reacquire = None;
209209
let mut out_of_bounds = None;
210210
unsafe {
@@ -218,8 +218,8 @@ impl &Condvar {
218218
signal_waitqueue(&state.waiters);
219219
}
220220
// Enqueue ourself to be woken up by a signaller.
221-
let signal_end = option::swap_unwrap(&mut signal_end);
222-
state.blocked[condvar_id].tail.send(signal_end);
221+
let SignalEnd = option::swap_unwrap(&mut SignalEnd);
222+
state.blocked[condvar_id].tail.send(SignalEnd);
223223
} else {
224224
out_of_bounds = Some(vec::len(state.blocked));
225225
}
@@ -238,7 +238,7 @@ impl &Condvar {
238238
// Unconditionally "block". (Might not actually block if a
239239
// signaller already sent -- I mean 'unconditionally' in contrast
240240
// with acquire().)
241-
let _ = pipes::recv_one(option::swap_unwrap(&mut wait_end));
241+
let _ = pipes::recv_one(option::swap_unwrap(&mut WaitEnd));
242242
}
243243

244244
// This is needed for a failing condition variable to reacquire the

0 commit comments

Comments
 (0)