20 static std::mutex mutex;
22 std::lock_guard<std::mutex> lock(mutex);
30 std::ostringstream str;
31 str <<
"/tmp/temp_dynlib_" << getpid() <<
"_" << incremental_id() <<
".so";
50 throw std::runtime_error(dlerror());
std::string full_path(const std::string &path)
Loads a Shared Object library.
DynamicLibrary(std::string libname_param, bool unique_name=false)
Loads a shared object library.
~DynamicLibrary()
Destructs the shared object library.
DynamicLibrary & operator=(DynamicLibrary &&other) noexcept
Move assignment operator.
void * GetSymbol(const char *symbol)
Extracts a symbol from the shared library.
void swap(DynamicLibrary &other)