MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / close_library

Function close_library

src/common/dylib_loader.cpp:57–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55namespace hipsycl::common {
56
57void close_library(void *handle, std::string &message) {
58#ifndef _WIN32
59 if (dlclose(handle)) {
60 message = "dlclose() failed";
61 }
62#else
63 if (!FreeLibrary(static_cast<HMODULE>(handle))) {
64 message = "FreeLibrary() failed";
65 }
66#endif
67}
68
69void *load_library(const std::string &filename, std::string &message) {
70#ifndef _WIN32

Callers 4

load_pluginFunction · 0.85
query_backendsMethod · 0.85
~backend_loaderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected