Implement Send for everything except Memory

This commit is contained in:
Mark McCaskey
2019-09-17 11:45:13 -07:00
parent 17a0e78cef
commit 9e9343878d
6 changed files with 41 additions and 21 deletions

View File

@ -501,6 +501,8 @@ pub struct LocalTable {
pub table: *mut (),
}
unsafe impl Send for LocalTable {}
impl LocalTable {
#[allow(clippy::erasing_op)] // TODO
pub fn offset_base() -> u8 {
@ -580,6 +582,8 @@ pub struct Anyfunc {
pub sig_id: SigId,
}
unsafe impl Send for Anyfunc {}
impl Anyfunc {
pub fn null() -> Self {
Self {