Linux: fix thread priority

This commit is contained in:
hoholee12 2023-07-23 22:52:23 +09:00
parent 70b124cfa0
commit 8163aaf7de
5 changed files with 35 additions and 12 deletions

View file

@ -38,6 +38,10 @@ namespace gl
void pipe_compiler::operator()()
{
#ifndef _WIN32
// Set low priority
thread_ctrl::scoped_priority low_prio(-1);
#endif
while (thread_ctrl::state() != thread_state::aborting)
{
for (auto&& job : m_work_queue.pop_all())