diff options
Diffstat (limited to 'src/libstd/sync.rs')
| -rw-r--r-- | src/libstd/sync.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sync.rs b/src/libstd/sync.rs index 58bdf8cfa74..f12114bfd8e 100644 --- a/src/libstd/sync.rs +++ b/src/libstd/sync.rs @@ -109,7 +109,7 @@ impl<Q: Owned> &Sem<Q> { state.count -= 1; if state.count < 0 { // Create waiter nobe. - let (SignalEnd, WaitEnd) = pipes::oneshot(); + let (WaitEnd, SignalEnd) = pipes::oneshot(); // Tell outer scope we need to block. waiter_nobe = Some(move WaitEnd); // Enqueue ourself. @@ -216,7 +216,7 @@ impl &Condvar { */ fn wait_on(condvar_id: uint) { // Create waiter nobe. - let (SignalEnd, WaitEnd) = pipes::oneshot(); + let (WaitEnd, SignalEnd) = pipes::oneshot(); let mut WaitEnd = Some(move WaitEnd); let mut SignalEnd = Some(move SignalEnd); let mut reacquire = None; |
