refactor(eventloop): Use concurrent queue for events
Events are now enqueued using a thread safe concurrent queue which makes the previous eventloop locking redundant.
This commit is contained in:
parent
92900e78d6
commit
1075144b00
15 changed files with 5263 additions and 384 deletions
include/modules
|
@ -165,7 +165,7 @@ namespace modules {
|
|||
const chrono::milliseconds framerate{m_animation_packetloss->framerate()};
|
||||
const auto dur = chrono::duration<double>(framerate);
|
||||
|
||||
while (enabled()) {
|
||||
while (running()) {
|
||||
if (m_connected && m_packetloss)
|
||||
broadcast();
|
||||
sleep(dur);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue