mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Fix deprecation warnings
This commit is contained in:
parent
12d19760b3
commit
7cf98f6b01
6 changed files with 12 additions and 12 deletions
|
@ -144,12 +144,12 @@ mod synchronized_heartbeat {
|
|||
use heartbeats_simple::HeartbeatPowContext as HeartbeatContext;
|
||||
use profile_traits::time::ProfilerCategory;
|
||||
use std::collections::HashMap;
|
||||
use std::sync::atomic::{AtomicBool, Ordering, ATOMIC_BOOL_INIT};
|
||||
use std::sync::atomic::{AtomicBool, Ordering};
|
||||
|
||||
static mut HBS: Option<*mut HashMap<ProfilerCategory, Heartbeat>> = None;
|
||||
|
||||
// unfortunately can't encompass the actual hashmap in a Mutex (Heartbeat isn't Send/Sync), so we'll use a spinlock
|
||||
static HBS_SPINLOCK: AtomicBool = ATOMIC_BOOL_INIT;
|
||||
static HBS_SPINLOCK: AtomicBool = AtomicBool::new(false);
|
||||
|
||||
pub fn lock_and_work<F, R>(work: F) -> R
|
||||
where
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue