gpu_thread: Move to bounded queue
This commit is contained in:
parent
c4d0f9d4df
commit
9d5dc3c9b9
3 changed files with 185 additions and 4 deletions
|
@ -31,7 +31,8 @@ static void RunThread(std::stop_token stop_token, Core::System& system,
|
|||
VideoCore::RasterizerInterface* const rasterizer = renderer.ReadRasterizer();
|
||||
|
||||
while (!stop_token.stop_requested()) {
|
||||
CommandDataContainer next = state.queue.PopWait(stop_token);
|
||||
CommandDataContainer next;
|
||||
state.queue.Pop(next, stop_token);
|
||||
if (stop_token.stop_requested()) {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue