Skip to content

Commit c03044c

Browse files
olsonjefferybrson
authored andcommitted
---
yaml --- r: 30418 b: refs/heads/incoming c: 9ee7b31 h: refs/heads/master v: v3
1 parent 1464e6f commit c03044c

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
@@ -6,7 +6,7 @@ refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9-
refs/heads/incoming: 2f32c0d5c34d0bd5c94b7905ebb2916ec94761e4
9+
refs/heads/incoming: 9ee7b31414fce48403daa19904a7097b9a77baea
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

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