mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
task -> thread
This commit is contained in:
parent
f00532bab0
commit
1f02c4ebbb
119 changed files with 1209 additions and 1207 deletions
|
@ -16,7 +16,7 @@ use std::sync::atomic::{self, AtomicBool};
|
|||
use std::sync::mpsc::{channel, Receiver, Select};
|
||||
use std::thread::{self, spawn, Thread};
|
||||
use std::time::Duration;
|
||||
use util::task::spawn_named;
|
||||
use util::thread::spawn_named;
|
||||
|
||||
/// A quick hack to work around the removal of [`std::old_io::timer::Timer`](
|
||||
/// http://doc.rust-lang.org/1.0.0-beta/std/old_io/timer/struct.Timer.html )
|
||||
|
@ -129,8 +129,8 @@ impl TimerScheduler {
|
|||
}
|
||||
|
||||
fn run_event_loop(&self) {
|
||||
while let Some(task) = self.receive_next_task() {
|
||||
match task {
|
||||
while let Some(thread) = self.receive_next_task() {
|
||||
match thread {
|
||||
Task::HandleRequest(request) => self.handle_request(request),
|
||||
Task::DispatchDueEvents => self.dispatch_due_events(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue