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

Function ITT_DoUnsafeOneTimeInitialization

benchmarks/tbb/tbb_main.cpp:196–205  ·  view source on GitHub ↗

Thread-unsafe lazy one-time initialization of tools interop. Used by both dummy handlers and general TBB one-time initialization routine. **/

Source from the content-addressed store, hash-verified

194/** Thread-unsafe lazy one-time initialization of tools interop.
195 Used by both dummy handlers and general TBB one-time initialization routine. **/
196void ITT_DoUnsafeOneTimeInitialization () {
197 if ( !ITT_InitializationDone ) {
198 ITT_Present = (__TBB_load_ittnotify()!=0);
199#if __TBB_ITT_STRUCTURE_API
200 if (ITT_Present) ITT_init();
201#endif
202 ITT_InitializationDone = true;
203 ITT_SYNC_CREATE(&market::theMarketMutex, SyncType_GlobalLock, SyncObj_SchedulerInitialization);
204 }
205}
206
207/** Thread-safe lazy one-time initialization of tools interop.
208 Used by dummy handlers only. **/

Callers 2

DoOneTimeInitializationsFunction · 0.85

Calls 2

__TBB_load_ittnotifyFunction · 0.85
ITT_initFunction · 0.85

Tested by

no test coverage detected