mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Time distribution across script event categories.
This commit is contained in:
parent
71b277d567
commit
1e6a2f08fc
11 changed files with 184 additions and 50 deletions
|
@ -186,20 +186,20 @@ impl Runnable for WorkerMessageHandler {
|
|||
}
|
||||
}
|
||||
|
||||
pub struct WorkerEventHandler {
|
||||
pub struct SimpleWorkerErrorHandler {
|
||||
addr: TrustedWorkerAddress,
|
||||
}
|
||||
|
||||
impl WorkerEventHandler {
|
||||
pub fn new(addr: TrustedWorkerAddress) -> WorkerEventHandler {
|
||||
WorkerEventHandler {
|
||||
impl SimpleWorkerErrorHandler {
|
||||
pub fn new(addr: TrustedWorkerAddress) -> SimpleWorkerErrorHandler {
|
||||
SimpleWorkerErrorHandler {
|
||||
addr: addr
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Runnable for WorkerEventHandler {
|
||||
fn handler(self: Box<WorkerEventHandler>) {
|
||||
impl Runnable for SimpleWorkerErrorHandler {
|
||||
fn handler(self: Box<SimpleWorkerErrorHandler>) {
|
||||
let this = *self;
|
||||
Worker::dispatch_simple_error(this.addr);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue