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

Method Flush

shadercompiler/CompileMessageQueue.cpp:68–82  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- Description: Waits until all messages are printed to stdout. --------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

66// Waits until all messages are printed to stdout.
67// --------------------------------------------------------------------------------------
68void CompileMessageQueue::Flush()
69{
70 while( true )
71 {
72 m_queueEvent.notify_one();
73 m_messagesMutex.lock();
74 bool empty = m_messages.empty();
75 m_messagesMutex.unlock();
76 if( empty )
77 {
78 break;
79 }
80 std::this_thread::sleep_for( std::chrono::milliseconds( 500 ) );
81 }
82}
83
84void CompileMessageQueue::SetEntryFileName( const char* fileName )
85{

Callers 4

PrintPermutationsFunction · 0.45
mainFunction · 0.45
CompilesFunction · 0.45
CompileFunction · 0.45

Calls 1

emptyMethod · 0.80

Tested by 2

CompilesFunction · 0.36
CompileFunction · 0.36