blob: a12c2f278fdca867195a4d29ba434bd05cb008e3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
native "rust" mod rustrt {
fn task_sleep(uint time_in_us);
}
/**
* Hints the scheduler to yield this task for a specified ammount of time.
*
* arg: time_in_us maximum number of microseconds to yield control for
*/
fn sleep(uint time_in_us) {
ret rustrt.task_sleep(time_in_us);
}
|