summary refs log tree commit diff
path: root/src/libstd/timer.rs
AgeCommit message (Collapse)AuthorLines
2012-04-27std: another stab at a race-free global loop implementationJeff Olson-10/+4
seems to hold up pretty well. uv::hl API is affected.. had to do work on tests and std::timer code that leverages the global loop/high_level_loop API. see test_stress_gl_uv_global_loop_high_level_global_timer for a stress example.. it takes a while to run, but it exits cleanly (something I could never accomplish with earlier iterations of the global loop)
2012-04-20std: ignore tests that use high_level_loopJeff Olson-0/+3
until race issue with (most likely) refcount scheme is sorted out
2012-04-20std: add timer::recv_timeout() and whitespace cleanupJeff Olson-5/+75
2012-04-20std: add std::timer and timer::delayed_send and timer::sleepJeff Olson-0/+113
.. leveraging std::uv, we have: timer::delayed_send - send a value over a provided channel after the timeout has passed timer::sleep - block the current task for the specified period both of these fns (and everything that goes in timer.rs) leverage the uv_timer_* API