Register new snapshots
This commit is contained in:
parent
6d8342f5e9
commit
89b0e6e12b
94 changed files with 321 additions and 841 deletions
|
@ -67,7 +67,7 @@ pub struct Timer {
|
|||
}
|
||||
|
||||
struct Inner {
|
||||
cb: Option<Box<rtio::Callback:Send>>,
|
||||
cb: Option<Box<rtio::Callback + Send>>,
|
||||
interval: u64,
|
||||
repeat: bool,
|
||||
target: u64,
|
||||
|
@ -251,7 +251,7 @@ impl rtio::RtioTimer for Timer {
|
|||
Timer::sleep(msecs);
|
||||
}
|
||||
|
||||
fn oneshot(&mut self, msecs: u64, cb: Box<rtio::Callback:Send>) {
|
||||
fn oneshot(&mut self, msecs: u64, cb: Box<rtio::Callback + Send>) {
|
||||
let now = now();
|
||||
let mut inner = self.inner();
|
||||
|
||||
|
@ -263,7 +263,7 @@ impl rtio::RtioTimer for Timer {
|
|||
unsafe { HELPER.send(NewTimer(inner)); }
|
||||
}
|
||||
|
||||
fn period(&mut self, msecs: u64, cb: Box<rtio::Callback:Send>) {
|
||||
fn period(&mut self, msecs: u64, cb: Box<rtio::Callback + Send>) {
|
||||
let now = now();
|
||||
let mut inner = self.inner();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue