diff options
author | Gregory Terzian <gterzian@users.noreply.github.com> | 2019-10-18 23:37:31 +0800 |
---|---|---|
committer | Gregory Terzian <gterzian@users.noreply.github.com> | 2019-10-20 23:42:34 +0800 |
commit | c893c8955de7cdbbe38893057923fb2d95c84194 (patch) | |
tree | 98da3638643921b12df9e41e14239459bca5d457 /components/script_traits/lib.rs | |
parent | 32eb858a6a0534d8acdd5184a50a22d90c18b2a8 (diff) | |
download | servo-c893c8955de7cdbbe38893057923fb2d95c84194.tar.gz servo-c893c8955de7cdbbe38893057923fb2d95c84194.zip |
update timer scheduler to use crossbeam
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r-- | components/script_traits/lib.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index 1aa37e56533..39dd2c5d517 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -556,14 +556,9 @@ pub struct TimerEventRequest( pub MsDuration, ); -/// Type of messages that can be sent to the timer scheduler. +/// The message used to send a request to the timer scheduler. #[derive(Debug, Deserialize, Serialize)] -pub enum TimerSchedulerMsg { - /// Message to schedule a new timer event. - Request(TimerEventRequest), - /// Message to exit the timer scheduler. - Exit, -} +pub struct TimerSchedulerMsg(pub TimerEventRequest); /// Notifies the script thread to fire due timers. /// `TimerSource` must be `FromWindow` when dispatched to `ScriptThread` and |