gpu_thread: Move to bounded queue

This commit is contained in:
Levi Behunin 2022-06-02 01:08:18 -06:00
parent c4d0f9d4df
commit 9d5dc3c9b9
3 changed files with 185 additions and 4 deletions

View file

@ -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;
}