Skip to content

Commit

Permalink
auto merge of #11199 : alexcrichton/rust/windows-isnt-waiting, r=pcwa…
Browse files Browse the repository at this point in the history
…lton

Turns out with an argument of 0 the function always returns immediately!

Closes #11003
  • Loading branch information
bors committed Dec 30, 2013
2 parents f7fd618 + 0da86ba commit 1502b11
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/libstd/comm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,6 @@ mod test {
})

#[test]
#[ignore(cfg(windows))] // FIXME(#11003)
fn send_from_outside_runtime() {
let (p, c) = Chan::<int>::new();
let (p1, c1) = Chan::new();
Expand All @@ -1044,7 +1043,6 @@ mod test {
}

#[test]
#[ignore(cfg(windows))] // FIXME(#11003)
fn recv_from_outside_runtime() {
let (p, c) = Chan::<int>::new();
let (dp, dc) = Chan::new();
Expand All @@ -1061,7 +1059,6 @@ mod test {
}

#[test]
#[ignore(cfg(windows))] // FIXME(#11003)
fn no_runtime() {
let (p1, c1) = Chan::<int>::new();
let (p2, c2) = Chan::<int>::new();
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/unstable/mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ mod imp {

pub unsafe fn wait(cond: *c_void, m: *c_void) {
unlock(m);
WaitForSingleObject(cond as HANDLE, 0);
WaitForSingleObject(cond as HANDLE, libc::INFINITE);
lock(m);
}

Expand Down

0 comments on commit 1502b11

Please sign in to comment.