Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tansiv
TANSIV
Commits
f5814a30
Commit
f5814a30
authored
Sep 28, 2020
by
RILLING Louis
Browse files
fake-vm: Fix compile error which should have raised before
parent
07c7b13d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/fake-vm/fake_vm/src/timer.rs
View file @
f5814a30
...
...
@@ -237,7 +237,7 @@ pub fn register(context: &Context) -> Result<()> {
INIT
.call_once
(||
{
// Signal handler safety: This is the only place where CONTEXT is write-locked.
let
mut
uniq_context
=
CONTEXT
.write
()
.unwrap
();
*
uniq_context
=
Arc
::
downgrade
(
context
);
*
uniq_context
=
Arc
::
downgrade
(
&
context
.0
);
success
=
true
;
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment