1

a std::condition_variable will let you wait_for the event_queue.has_event() when pushing an event you can notify_one to wake up the waiting thread. However the downside of this is that you are depending on the scheduler to actually wake up the thread. However scheduler resolution can be larger than you'd expect. it's better if only 1 thread is doing the ...


Only top voted, non community-wiki answers of a minimum length are eligible