You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a lock load_ref_lock and class_loader::impl::loadLibrary(getLibraryPath(), this) will not load .so library twice. Why not just use a bool is_loaded to load and unload the .so library.
I didn't see the benefits of counting times of the loadLibrary. The unloadLibrary will do nothing when load_ref_count_ > 0 too.
There is a lock
load_ref_lock
andclass_loader::impl::loadLibrary(getLibraryPath(), this)
will not load .so library twice. Why not just use a boolis_loaded
to load and unload the .so library.I didn't see the benefits of counting times of the
loadLibrary
. TheunloadLibrary
will do nothing whenload_ref_count_ > 0
too.class_loader/src/class_loader.cpp
Lines 100 to 102 in a183b76
The text was updated successfully, but these errors were encountered: