File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
branches/dist-snap/src/libstd/rt/io Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ refs/heads/try: 0983ebe5310d4eb6d289f636f7ed0536c08bbc0e
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
- refs/heads/dist-snap: f5018c5a4c908e5236c59b71df285e0569478c72
9
+ refs/heads/dist-snap: 4edf3758d178213882530c47b9ea1e2e6356d5a1
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
12
12
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
Original file line number Diff line number Diff line change @@ -18,9 +18,6 @@ use rt::local::Local;
18
18
pub struct Timer ( ~RtioTimerObject ) ;
19
19
20
20
impl Timer {
21
- fn new_on_rt ( i : ~RtioTimerObject ) -> Timer {
22
- Timer ( i)
23
- }
24
21
25
22
pub fn new ( ) -> Option < Timer > {
26
23
let timer = unsafe {
@@ -30,18 +27,16 @@ impl Timer {
30
27
( * io) . timer_init ( )
31
28
} ;
32
29
match timer {
33
- Ok ( t) => Some ( Timer :: new_on_rt ( t) ) ,
30
+ Ok ( t) => Some ( Timer ( t) ) ,
34
31
Err ( ioerr) => {
35
32
rtdebug ! ( "Timer::init: failed to init: %?" , ioerr) ;
36
33
io_error:: cond. raise ( ioerr) ;
37
34
None
38
35
}
39
36
}
40
37
}
41
- }
42
38
43
- impl RtioTimer for Timer {
44
- fn sleep ( & mut self , msecs : u64 ) {
39
+ pub fn sleep ( & mut self , msecs : u64 ) {
45
40
( * * self ) . sleep ( msecs) ;
46
41
}
47
42
}
You can’t perform that action at this time.
0 commit comments