mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
update timer scheduler to use crossbeam
This commit is contained in:
parent
32eb858a6a
commit
c893c8955d
4 changed files with 73 additions and 107 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue