1 2 3 4 5 6 7 8 9
use crate::records::native_module::NativeModule; impl NativeModule { pub fn native_module_add_ref(&self) -> usize { self.refcount .fetch_add(1, core::sync::atomic::Ordering::Relaxed) + 1 } }