mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Create a seperate thread for devtools' TCP acceptor (Closes #5294).
This commit is contained in:
parent
8f45268420
commit
5d444fe16d
2 changed files with 34 additions and 36 deletions
|
@ -23,6 +23,7 @@ use msg::constellation_msg::PipelineId;
|
|||
use util::str::DOMString;
|
||||
use url::Url;
|
||||
|
||||
use std::old_io::TcpStream;
|
||||
use std::sync::mpsc::{Sender, Receiver};
|
||||
|
||||
pub type DevtoolsControlChan = Sender<DevtoolsControlMsg>;
|
||||
|
@ -38,6 +39,7 @@ pub struct DevtoolsPageInfo {
|
|||
/// Messages to the instruct the devtools server to update its known actors/state
|
||||
/// according to changes in the browser.
|
||||
pub enum DevtoolsControlMsg {
|
||||
AddClient(TcpStream),
|
||||
NewGlobal(PipelineId, Sender<DevtoolScriptControlMsg>, DevtoolsPageInfo),
|
||||
SendConsoleMessage(PipelineId, ConsoleMessage),
|
||||
ServerExitMsg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue