I want to use libloading to share some static variable by once_cell, but it is still None after I change it. like this:
let cell = value_from_lib();
cell.set(10).unwrap();
let val = cell.get();
assert!(val.is_some());
let cell = value_from_lib();
let val = cell.get();
assert!(val.is_none());
I want to use libloading to share some static variable by once_cell, but it is still
None
after I change it. like this:my static variable like this: