Apply requested changes

This commit is contained in:
offtkp 2024-08-09 02:16:38 +03:00
parent 9a852475c5
commit 3678523266
6 changed files with 63 additions and 79 deletions

View file

@ -45,6 +45,6 @@ struct AsyncCompilerThread {
std::array<CompilingProgram*, preallocatedProgramsSize> preallocatedPrograms;
lockfree::spsc::Queue<CompilingProgram*, preallocatedProgramsSize - 1> programQueue;
std::atomic_bool running;
std::atomic_flag hasWork = ATOMIC_FLAG_INIT;
std::atomic_bool hasWork;
std::thread thread;
};