]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #21132 : sfackler/rust/wait_timeout, r=alexcrichton
authorbors <bors@rust-lang.org>
Sat, 17 Jan 2015 03:51:34 +0000 (03:51 +0000)
committerbors <bors@rust-lang.org>
Sat, 17 Jan 2015 03:51:34 +0000 (03:51 +0000)
**The implementation is a direct adaptation of libcxx's condition_variable implementation.**

I also added a wait_timeout_with method, which matches the second overload in C++'s condition_variable. The implementation right now is kind of dumb but it works. There is an outstanding issue with it: as is it doesn't support the use case where a user doesn't care about poisoning and wants to continue through poison.

r? @alexcrichton @aturon

1  2 
src/libstd/sync/condvar.rs

Simple merge