Skip to content

Commit 1e6fe01

Browse files
committed
---
yaml --- r: 64595 b: refs/heads/snap-stage3 c: 155470f h: refs/heads/master i: 64593: c17a240 64591: 1b0d11f v: v3
1 parent 52f378c commit 1e6fe01

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 5da29e3278b639540679e88fc7dd008435066e9a
4+
refs/heads/snap-stage3: 155470fc9cd8e1cdfd0f6ecc558f865f54c1ef29
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libstd/rt/io/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ mod extensions;
298298
mod support;
299299

300300
/// Basic Timer
301-
mod timer;
301+
pub mod timer;
302302

303303
/// Thread-blocking implementations
304304
pub mod native {

branches/snap-stage3/src/libstd/rt/io/timer.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ use rt::local::Local;
1717
pub struct Timer(~RtioTimerObject);
1818

1919
impl Timer {
20-
fn new(i: ~RtioTimerObject) -> Timer {
20+
fn new_on_rt(i: ~RtioTimerObject) -> Timer {
2121
Timer(i)
2222
}
2323

24-
pub fn init() -> Option<Timer> {
24+
pub fn new() -> Option<Timer> {
2525
let timer = unsafe {
2626
rtdebug!("Timer::init: borrowing io to init timer");
2727
let io = Local::unsafe_borrow::<IoFactoryObject>();
2828
rtdebug!("about to init timer");
2929
(*io).timer_init()
3030
};
3131
match timer {
32-
Ok(t) => Some(Timer::new(t)),
32+
Ok(t) => Some(Timer::new_on_rt(t)),
3333
Err(ioerr) => {
3434
rtdebug!("Timer::init: failed to init: %?", ioerr);
3535
io_error::cond.raise(ioerr);
@@ -53,7 +53,7 @@ mod test {
5353
#[test]
5454
fn test_io_timer_sleep_simple() {
5555
do run_in_newsched_task {
56-
let timer = Timer::init();
56+
let timer = Timer::new();
5757
match timer {
5858
Some(t) => t.sleep(1),
5959
None => assert!(false)

0 commit comments

Comments
 (0)