mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 22:28:21 +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
|
/// # 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 {}
|
unsafe impl Send for FunctionBodyPtr {}
|
||||||
/// # Safety
|
/// # 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 {}
|
unsafe impl Sync for FunctionBodyPtr {}
|
||||||
|
|
||||||
/// Pointers to section data.
|
/// Pointers to section data.
|
||||||
|
|||||||
Reference in New Issue
Block a user