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

Method EndParallelEncoding

trinity/Tr2RenderContext.cpp:244–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244void Tr2RenderContext::EndParallelEncoding()
245{
246#if TRINITY_PLATFORM_SUPPORTS_PARALLEL_CONTEXTS
247 CCP_STATS_ZONE( __FUNCTION__ );
248 {
249 CCP_STATS_ZONE( "Tr2RenderContextAL::EndParallelEncoding" );
250 Tr2RenderContextAL::EndParallelEncoding();
251 }
252
253 // Reset semaphore to 0
254 for( size_t i = 0; i < m_parallelContextsPool.size(); ++i )
255 {
256 m_parallelContextSemaphore.Wait();
257 }
258 m_parallelContextsPool.clear();
259#endif
260}
261
262
263#if TRINITY_PLATFORM_HAS_PRIMARY_CONTEXT

Callers 1

RenderSortedBatchesMethod · 0.80

Calls 2

sizeMethod · 0.80
WaitMethod · 0.45

Tested by

no test coverage detected