mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Removed util.
This commit is contained in:
parent
01b6ad55bd
commit
9be4fd56ce
133 changed files with 396 additions and 352 deletions
|
@ -19,7 +19,6 @@ use std::net::TcpStream;
|
|||
use std::sync::{Arc, Mutex};
|
||||
use std::thread;
|
||||
use std::time::Duration;
|
||||
use util::thread::spawn_named;
|
||||
|
||||
pub struct TimelineActor {
|
||||
name: String,
|
||||
|
@ -150,7 +149,7 @@ impl TimelineActor {
|
|||
return;
|
||||
}
|
||||
|
||||
spawn_named("PullTimelineMarkers".to_owned(), move || {
|
||||
thread::Builder::new().name("PullTimelineMarkers".to_owned()).spawn(move || {
|
||||
loop {
|
||||
if !*is_recording.lock().unwrap() {
|
||||
break;
|
||||
|
@ -164,7 +163,7 @@ impl TimelineActor {
|
|||
|
||||
thread::sleep(Duration::from_millis(DEFAULT_TIMELINE_DATA_PULL_TIMEOUT));
|
||||
}
|
||||
});
|
||||
}).expect("Thread spawning failed");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue