mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 05:38:19 +00:00
Document why Send and Sync are safe.
This commit is contained in:
@@ -72,10 +72,12 @@ impl std::ops::Deref for FunctionBodyPtr {
|
||||
}
|
||||
|
||||
/// # Safety
|
||||
/// TODO:
|
||||
/// The VMFunctionBody that this points to is opaque, so there's no data to
|
||||
/// read or write through this pointer. This is essentially a usize.
|
||||
unsafe impl Send for FunctionBodyPtr {}
|
||||
/// # Safety
|
||||
/// TODO:
|
||||
/// The VMFunctionBody that this points to is opaque, so there's no data to
|
||||
/// read or write through this pointer. This is essentially a usize.
|
||||
unsafe impl Sync for FunctionBodyPtr {}
|
||||
|
||||
/// Pointers to section data.
|
||||
|
||||
Reference in New Issue
Block a user