| 31 | } |
| 32 | |
| 33 | void AddToComputeQueue( IBlueCallbackMan::CallbackFunc pCb, void* pContext ) |
| 34 | { |
| 35 | if( !s_initialized ) |
| 36 | { |
| 37 | std::thread( &TasksWorker ).detach(); |
| 38 | s_initialized = true; |
| 39 | } |
| 40 | { |
| 41 | std::lock_guard lock( s_tasksMutex ); |
| 42 | s_tasks.push_back( { pCb, pContext } ); |
| 43 | } |
| 44 | s_tasksCV.notify_one(); |
| 45 | } |
| 46 | |
| 47 | } |
| 48 |
no outgoing calls
no test coverage detected