use condivar in install stream to wait until the buffer is empty

This commit is contained in:
ITotalJustice
2025-07-20 20:25:49 +01:00
parent 7fb973c28d
commit 97dc39620c
2 changed files with 22 additions and 7 deletions

View File

@@ -35,10 +35,11 @@ private:
std::stop_token m_token{};
std::vector<u8> m_buffer{};
CondVar m_can_read{};
CondVar m_can_write{};
public:
Mutex m_mutex{};
bool m_active{};
std::atomic_bool m_active{};
};
struct Menu : MenuBase {