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

Method Get

shadercompiler/WorkQueue.h:69–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 }
68
69 T* Get()
70 {
71 for( ;; )
72 {
73 std::unique_lock scope( m_mutex );
74 if( !m_queue.empty() )
75 {
76 auto item = m_queue.front();
77 m_queue.pop();
78 return item;
79 }
80 m_added.wait( scope, [this] { return !m_queue.empty(); } );
81 }
82 }
83
84 void WorkerThread()
85 {

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.80
waitMethod · 0.80

Tested by

no test coverage detected