MCPcopy Create free account
hub / github.com/InoriRus/Kyty / GetCmdBatch

Method GetCmdBatch

source/emulator/src/Graphics/GraphicsRun.cpp:769–790  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

767}
768
769GraphicsRing::CmdBatch GraphicsRing::GetCmdBatch()
770{
771 Core::LockGuard lock(m_mutex);
772
773 while (m_cmd_batches.Size() == 0)
774 {
775 m_idle = true;
776 m_idle_cond_var.Signal();
777
778 m_cond_var.Wait(&m_mutex);
779 }
780
781 m_idle = false;
782
783 auto first = m_cmd_batches.First();
784
785 CmdBatch buf = m_cmd_batches.At(first);
786
787 m_cmd_batches.Remove(first);
788
789 return buf;
790}
791
792void GraphicsRing::ThreadBatchRun(void* data)
793{

Callers 1

ThreadBatchRunMethod · 0.80

Calls 6

FirstMethod · 0.80
AtMethod · 0.80
SizeMethod · 0.45
SignalMethod · 0.45
WaitMethod · 0.45
RemoveMethod · 0.45

Tested by

no test coverage detected