diff options
| author | Peter Atashian <retep998@gmail.com> | 2015-01-19 05:55:15 -0500 | 
|---|---|---|
| committer | Peter Atashian <retep998@gmail.com> | 2015-01-19 05:55:15 -0500 | 
| commit | abccfa4018a407bbe80e8acd0f83c023664ea49a (patch) | |
| tree | 03a288f5c05fb28e9139dd1bdebd8a95cbfc0b69 /src/libstd/io/timer.rs | |
| parent | bd8a43c668ba93d29e9671c0c8dc6b67428bf492 (diff) | |
| download | rust-abccfa4018a407bbe80e8acd0f83c023664ea49a.tar.gz rust-abccfa4018a407bbe80e8acd0f83c023664ea49a.zip | |
Impl Send for Timer on Windows
Fixes #20943 Signed-off-by: Peter Atashian <retep998@gmail.com>
Diffstat (limited to 'src/libstd/io/timer.rs')
| -rw-r--r-- | src/libstd/io/timer.rs | 6 | 
1 files changed, 6 insertions, 0 deletions
| 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 @@ -228,6 +228,12 @@ mod test { 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(); timer.sleep(Duration::milliseconds(1)); | 
