MCPcopy Create free account
hub / github.com/carbonengine/trinity / AddToComputeQueue

Function AddToComputeQueue

trinity/Tr2TextureAnimation.cpp:33–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void 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

Callers 3

AdvanceTimeMethod · 0.85
RestartAnimationMethod · 0.85
ReadFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected