summary refs log tree commit diff
path: root/src/libstd/rt/io/timer.rs
AgeCommit message (Collapse)AuthorLines
2013-09-15std::rt: Add a standalone sleep function.Huon Wilson-0/+14
2013-09-06Make I/O tests use run_in_mt_newsched_task to get more multi-threaded test ↵Eric Reed-1/+1
coverage
2013-08-27librustc: Ensure that type parameters are in the right positions in paths.Patrick Walton-1/+1
This removes the stacking of type parameters that occurs when invoking trait methods, and fixes all places in the standard library that were relying on it. It is somewhat awkward in places; I think we'll probably want something like the `Foo::<for T>::new()` syntax.
2013-08-20Moved .sleep() to Timer.Eric Reed-7/+2
2013-08-19Make IO thread-safe.Eric Reed-7/+3
Each IO handle has a home event loop, which created it. When a task wants to use an IO handle, it must first make sure it is on that home event loop. It uses the scheduler handle in the IO handle to send itself there before starting the IO action. Once the IO action completes, the task restores its previous home state. If it is an AnySched task, then it will be executed on the new scheduler. If it has a normal home, then it will return there before executing any more code after the IO action.
2013-07-22std: make check appeasementJeff Olson-6/+7
2013-07-22std: minor timer cleanup based on feedbackJeff Olson-4/+4
2013-07-22std: add rt::io::TimerJeff Olson-0/+63