Add WasmerEnv: Sync

This commit is contained in:
Mark McCaskey
2020-12-15 13:43:37 -08:00
parent 6a2116917f
commit 8081aaeee4
6 changed files with 8 additions and 4 deletions

View File

@@ -111,6 +111,7 @@ pub unsafe extern "C" fn wasm_func_new_with_env(
// Only relevant when using multiple threads in the C API;
// Synchronization will be done via the C API / on the C side.
unsafe impl Send for WrapperEnv {}
unsafe impl Sync for WrapperEnv {}
impl Drop for WrapperEnv {
fn drop(&mut self) {