mirror of
https://github.com/servo/servo.git
synced 2025-07-25 08:10:21 +01:00
Make Background Hang Monitor Optional
This is done by wrapping all channels of communication and related objects inside Option which are configured using flag inside servo_config.
This commit is contained in:
parent
ada95b9878
commit
a05553f188
9 changed files with 126 additions and 74 deletions
|
@ -644,7 +644,7 @@ pub struct InitialScriptState {
|
|||
/// A channel on which messages can be sent to the constellation from script.
|
||||
pub script_to_constellation_chan: ScriptToConstellationChan,
|
||||
/// A handle to register script-(and associated layout-)threads for hang monitoring.
|
||||
pub background_hang_monitor_register: Box<dyn BackgroundHangMonitorRegister>,
|
||||
pub background_hang_monitor_register: Option<Box<dyn BackgroundHangMonitorRegister>>,
|
||||
/// A sender for the layout thread to communicate to the constellation.
|
||||
pub layout_to_constellation_chan: IpcSender<LayoutMsg>,
|
||||
/// A channel to schedule timer events.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue