We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9e17690 + 8c222af commit 65857e7Copy full SHA for 65857e7
wasm/lib/src/vm_class.rs
@@ -29,7 +29,9 @@ impl StoredVirtualMachine {
29
}
30
31
32
-// It's fine that it's thread local, since WASM doesn't even have threads yet
+// It's fine that it's thread local, since WASM doesn't even have threads yet. thread_local! probably
33
+// gets compiled down to a normal-ish static varible, like Atomic* types:
34
+// https://rustwasm.github.io/2018/10/24/multithreading-rust-and-wasm.html#atomic-instructions
35
thread_local! {
36
static STORED_VMS: PyRef<HashMap<String, PyRef<StoredVirtualMachine>>> = Rc::default();
37
static ACTIVE_VMS: PyRef<HashMap<String, *mut VirtualMachine>> = Rc::default();
0 commit comments