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

Function abs_path

benchmarks/tbb/dynamic_link.cpp:373–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371 */
372 #if __TBB_DYNAMIC_LOAD_ENABLED
373 static size_t abs_path( char const * name, char * path, size_t len ) {
374 atomic_once( &init_dl_data, init_dl_data_state );
375
376 if ( !ap_data._len )
377 return 0;
378
379 size_t name_len = strlen( name );
380 size_t full_len = name_len+ap_data._len;
381 if ( full_len < len ) {
382 strncpy( path, ap_data._path, ap_data._len );
383 strncpy( path+ap_data._len, name, name_len );
384 path[full_len] = 0;
385 }
386 return full_len;
387 }
388 #endif // __TBB_DYNAMIC_LOAD_ENABLED
389
390 #if __TBB_WEAK_SYMBOLS_PRESENT

Callers 1

dynamic_loadFunction · 0.85

Calls 1

atomic_onceFunction · 0.85

Tested by

no test coverage detected