MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / dynamic_link

Function dynamic_link

benchmarks/tbb/dynamic_link.cpp:153–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151
152#if __TBB_WIN8UI_SUPPORT
153 bool dynamic_link( const char* library, const dynamic_link_descriptor descriptors[], size_t required, dynamic_link_handle*, int flags ) {
154 dynamic_link_handle tmp_handle = NULL;
155 TCHAR wlibrary[256];
156 if ( MultiByteToWideChar(CP_UTF8, 0, library, -1, wlibrary, 255) == 0 ) return false;
157 if ( flags & DYNAMIC_LINK_LOAD )
158 tmp_handle = LoadPackagedLibrary( wlibrary, 0 );
159 if (tmp_handle != NULL){
160 return resolve_symbols(tmp_handle, descriptors, required);
161 }else{
162 return false;
163 }
164 }
165 void dynamic_unlink( dynamic_link_handle ) {
166 }
167 void dynamic_unlink_all() {

Callers 5

init_condvar_moduleFunction · 0.85
init_concmon_moduleFunction · 0.85
initialize_cilk_interopFunction · 0.85

Calls 5

resolve_symbolsFunction · 0.85
global_symbols_linkFunction · 0.85
dynamic_loadFunction · 0.85
weak_symbol_linkFunction · 0.85
save_library_handleFunction · 0.85

Tested by

no test coverage detected