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

Method AddMessage

shadercompiler/CompileMessageQueue.cpp:43–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41#endif
42
43void CompileMessageQueue::AddMessage( const char* format, ... )
44{
45 va_list args;
46
47 va_start( args, format );
48 int count = vsnprintf( nullptr, 0, format, args ) + 1;
49 va_end( args );
50
51 std::string message;
52 message.resize( count );
53
54 va_start( args, format );
55 count = vsnprintf( &message[0], message.size(), format, args );
56 va_end( args );
57
58 m_messagesMutex.lock();
59 m_messages.push( message );
60 m_messagesMutex.unlock();
61 m_queueEvent.notify_one();
62}
63
64// --------------------------------------------------------------------------------------
65// Description:

Callers 14

MatchShaderInputOutputFunction · 0.80
CompileEffectMethod · 0.80
WorkQueue2Method · 0.80
PutMethod · 0.80
AquireSemaphoreMethod · 0.80
FreeSemaphoreMethod · 0.80
ProcessReflectionFunction · 0.80
CompileCodeFunction · 0.80
CreateMethod · 0.80
CompileEffectMethod · 0.80

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected