#include <DynamicLoader.h>
Definition at line 35 of file DynamicLoader.h.
◆ DynamicLoader()
core::DynamicLoader::DynamicLoader |
( |
| ) |
|
|
delete |
◆ ~DynamicLoader()
core::DynamicLoader::~DynamicLoader |
( |
| ) |
|
|
delete |
◆ dlClose() [1/2]
int core::DynamicLoader::dlClose |
( |
const Library & | library | ) |
|
|
staticprivate |
Definition at line 97 of file DynamicLoader.cpp.
97 {
98 int ret = 0;
100
101 if (ret != 0) {
103 } else {
104 LOG(
TRACE) <<
" dlClose: " << library.fileName <<
": success";
105 }
106
107 return ret;
108 }
static int realExecDlClose(const Library &library)
◆ dlClose() [2/2]
int core::DynamicLoader::dlClose |
( |
void * | handle | ) |
|
|
static |
Definition at line 67 of file DynamicLoader.cpp.
67 {
68 int ret = 0;
69
70 if (handle != nullptr) {
73
75 } else {
76 LOG(
TRACE) <<
"DynLoader: dlCloseDelayed: " << handle <<
": not opened using dlOpen";
77 }
78 } else {
79 LOG(
TRACE) <<
"DynLoader: dlClose handle: nullptr";
80 }
81
82 return ret;
83 }
static int dlClose(void *handle)
static std::map< void *, Library > dlOpenedLibraries
◆ dlCloseDelayed()
void core::DynamicLoader::dlCloseDelayed |
( |
void * | handle | ) |
|
|
static |
Definition at line 49 of file DynamicLoader.cpp.
49 {
50 if (handle != nullptr) {
54
56 } else {
57 LOG(
TRACE) <<
"DynLoader: dlCloseDelayed: " <<
dlOpenedLibraries[handle].fileName <<
": already registered: ";
58 }
59 } else {
60 LOG(
TRACE) <<
"DynLoader: dlCloseDelayed: " << handle <<
": not opened using dlOpen";
61 }
62 } else {
63 LOG(
TRACE) <<
"DynLoader: dlCloseDelayed: handle is nullptr";
64 }
65 }
static std::list< void * > closeHandles
◆ dlError()
char * core::DynamicLoader::dlError |
( |
| ) |
|
|
static |
◆ dlRegisterHandle()
void * core::DynamicLoader::dlRegisterHandle |
( |
void * | handle, |
|
|
const std::string & | libFile ) |
|
static |
Definition at line 35 of file DynamicLoader.cpp.
35 {
36 if (handle != nullptr) {
40 }
41 LOG(
TRACE) <<
"DynLoader: dlOpen: " << libFile <<
": success";
42 } else {
44 }
45
46 return handle;
47 }
◆ dlSym()
void * core::DynamicLoader::dlSym |
( |
void * | handle, |
|
|
const std::string & | symbol ) |
|
static |
Definition at line 85 of file DynamicLoader.cpp.
85 {
87 }
void * dlsym(void *handle, const char *symbol)
◆ execDlCloseAll()
void core::DynamicLoader::execDlCloseAll |
( |
| ) |
|
|
staticprivate |
Definition at line 125 of file DynamicLoader.cpp.
125 {
126 LOG(
TRACE) <<
"DynLoader: execDlCloseAll";
127
130 }
131
134
135 LOG(
TRACE) <<
"DynLoader: execDlCloseAll done";
136 }
◆ execDlCloseDeleyed()
void core::DynamicLoader::execDlCloseDeleyed |
( |
| ) |
|
|
staticprivate |
◆ realExecDlClose()
int core::DynamicLoader::realExecDlClose |
( |
const Library & | library | ) |
|
|
staticprivate |
◆ EventLoop
◆ EventMultiplexer
◆ closeHandles
std::list< void * > core::DynamicLoader::closeHandles |
|
staticprivate |
◆ dlOpenedLibraries
The documentation for this class was generated from the following files: