From abccfa4018a407bbe80e8acd0f83c023664ea49a Mon Sep 17 00:00:00 2001 From: Peter Atashian Date: Mon, 19 Jan 2015 05:55:15 -0500 Subject: Impl Send for Timer on Windows Fixes #20943 Signed-off-by: Peter Atashian --- src/libstd/io/timer.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/libstd/io/timer.rs') diff --git a/src/libstd/io/timer.rs b/src/libstd/io/timer.rs index 844a97dea2d..68ae7d0ff20 100644 --- a/src/libstd/io/timer.rs +++ b/src/libstd/io/timer.rs @@ -227,6 +227,12 @@ mod test { use thread::Thread; use time::Duration; + #[test] + fn test_timer_send() { + let mut timer = Timer::new().unwrap(); + Thread::spawn(move || timer.sleep(Duration::milliseconds(1))); + } + #[test] fn test_io_timer_sleep_simple() { let mut timer = Timer::new().unwrap(); -- cgit 1.4.1-3-g733a5