diff options
author | Dirk Huss <dirk_huss@mentor.com> | 2015-12-09 14:30:44 +0100 |
---|---|---|
committer | Dirk Huss <dirk_huss@mentor.com> | 2015-12-09 14:30:44 +0100 |
commit | 77d9cdaf6acee03a1e360e0e1a3cd0b01a95b407 (patch) | |
tree | 4ed26f279ad0ae147af50d4a85072ebed751ce26 /src/CommonAPI/Runtime.cpp | |
parent | b545ed39392a73c1f3c432ec6ae3558f6ab161d5 (diff) | |
download | genivi-common-api-runtime-77d9cdaf6acee03a1e360e0e1a3cd0b01a95b407.tar.gz |
CommonAPI 3.1.5list
Diffstat (limited to 'src/CommonAPI/Runtime.cpp')
-rw-r--r-- | src/CommonAPI/Runtime.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/CommonAPI/Runtime.cpp b/src/CommonAPI/Runtime.cpp index b2cab99..7d075a2 100644 --- a/src/CommonAPI/Runtime.cpp +++ b/src/CommonAPI/Runtime.cpp @@ -213,8 +213,7 @@ Runtime::createProxy( // ...it seems do not, lets try to load a library that does... std::lock_guard<std::mutex> itsGuard(loadMutex_); std::string library = getLibrary(_domain, _interface, _instance, true); - loadLibrary(library); - { + if (loadLibrary(library) || defaultFactory_) { proxy = createProxyHelper(_domain, _interface, _instance, _connectionId, true); } } @@ -232,8 +231,7 @@ Runtime::createProxy( // ...it seems do not, lets try to load a library that does... std::lock_guard<std::mutex> itsGuard(loadMutex_); std::string library = getLibrary(_domain, _interface, _instance, true); - loadLibrary(library); - { + if (loadLibrary(library) || defaultFactory_) { proxy = createProxyHelper(_domain, _interface, _instance, _context, true); } } @@ -249,8 +247,7 @@ Runtime::registerStub(const std::string &_domain, const std::string &_interface, if (!isRegistered) { std::string library = getLibrary(_domain, _interface, _instance, false); std::lock_guard<std::mutex> itsGuard(loadMutex_); - loadLibrary(library); - { + if (loadLibrary(library) || defaultFactory_) { isRegistered = registerStubHelper(_domain, _interface, _instance, _stub, _connectionId, true); } } @@ -265,8 +262,7 @@ Runtime::registerStub(const std::string &_domain, const std::string &_interface, if (!isRegistered) { std::string library = getLibrary(_domain, _interface, _instance, false); std::lock_guard<std::mutex> itsGuard(loadMutex_); - loadLibrary(library); - { + if (loadLibrary(library) || defaultFactory_) { isRegistered = registerStubHelper(_domain, _interface, _instance, _stub, _context, true); } } @@ -342,7 +338,7 @@ Runtime::loadLibrary(const std::string &_library) { loadedLibraries_.insert(itsLibrary); COMMONAPI_DEBUG("Loading interface library \"", itsLibrary, "\" succeeded."); } else { - //COMMONAPI_ERROR("Loading interface library \"", itsLibrary, "\" failed (", GetLastError(), ")"); + COMMONAPI_DEBUG("Loading interface library \"", itsLibrary, "\" failed (", GetLastError(), ")"); isLoaded = false; } #else @@ -351,7 +347,7 @@ Runtime::loadLibrary(const std::string &_library) { COMMONAPI_DEBUG("Loading interface library \"", itsLibrary, "\" succeeded."); } else { - //COMMONAPI_ERROR("Loading interface library \"", itsLibrary, "\" failed (", dlerror(), ")"); + COMMONAPI_DEBUG("Loading interface library \"", itsLibrary, "\" failed (", dlerror(), ")"); isLoaded = false; } #endif |