mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update the MULTIPROCESS static when changing default options
This commit is contained in:
parent
5f40842294
commit
e268a4341c
1 changed files with 3 additions and 0 deletions
|
@ -911,6 +911,9 @@ lazy_static! {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_defaults(opts: Opts) {
|
pub fn set_defaults(opts: Opts) {
|
||||||
|
// Set the static to the new default value.
|
||||||
|
MULTIPROCESS.store(opts.multiprocess, Ordering::SeqCst);
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
assert!(DEFAULT_OPTIONS.is_null());
|
assert!(DEFAULT_OPTIONS.is_null());
|
||||||
assert_ne!(DEFAULT_OPTIONS, INVALID_OPTIONS);
|
assert_ne!(DEFAULT_OPTIONS, INVALID_OPTIONS);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue