Thread-unsafe lazy one-time initialization of tools interop. Used by both dummy handlers and general TBB one-time initialization routine. **/
| 194 | /** Thread-unsafe lazy one-time initialization of tools interop. |
| 195 | Used by both dummy handlers and general TBB one-time initialization routine. **/ |
| 196 | void 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. **/ |
no test coverage detected