}
this->display->flush();
- // execute pending tasks, that is layout changes etc.
- // this->execute_pending();
-
return 0;
}
int App::dispatch_pending_events() {
- if (this->pending_events.load(std::memory_order_consume)) {
- this->pending_events.store(false, std::memory_order_release);
+ if (this->pop_pending_events()) {
+ assert(this->pending_events == false);
this->display->dispatch_pending();
return 0;
}