mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
task -> thread
This commit is contained in:
parent
f00532bab0
commit
1f02c4ebbb
119 changed files with 1209 additions and 1207 deletions
|
@ -18,7 +18,7 @@ use std::sync::mpsc::channel;
|
|||
use std::sync::{Arc, Mutex};
|
||||
use std::thread;
|
||||
use std::time::Duration;
|
||||
use util::task;
|
||||
use util::thread::spawn_named;
|
||||
|
||||
pub struct TimelineActor {
|
||||
name: String,
|
||||
|
@ -147,7 +147,7 @@ impl TimelineActor {
|
|||
return;
|
||||
}
|
||||
|
||||
task::spawn_named("PullTimelineMarkers".to_owned(), move || {
|
||||
spawn_named("PullTimelineMarkers".to_owned(), move || {
|
||||
loop {
|
||||
if !*is_recording.lock().unwrap() {
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue