mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
style: Add refcount logging to servo_arc.
Differential Revision: https://phabricator.services.mozilla.com/D32173
This commit is contained in:
parent
57868f571f
commit
9a9a4e12d5
10 changed files with 100 additions and 23 deletions
|
@ -71,6 +71,14 @@ impl SharedRwLock {
|
|||
}
|
||||
}
|
||||
|
||||
/// Create a new global shared lock (gecko).
|
||||
#[cfg(feature = "gecko")]
|
||||
pub fn new_leaked() -> Self {
|
||||
SharedRwLock {
|
||||
cell: Some(Arc::new_leaked(AtomicRefCell::new(SomethingZeroSizedButTyped))),
|
||||
}
|
||||
}
|
||||
|
||||
/// Create a new read-only shared lock (gecko).
|
||||
#[cfg(feature = "gecko")]
|
||||
pub fn read_only() -> Self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue