Use app-local queue for messages coming from application.

Messages are now deferred until application thread call stack unwinds, events are checked.
This commit is contained in:
Jared Boone 2016-06-21 11:00:42 -07:00
parent dbe735233a
commit 76c5fe96af
3 changed files with 6 additions and 6 deletions

View file

@ -119,10 +119,6 @@ void EventDispatcher::request_stop() {
is_running = false;
}
void EventDispatcher::send_message(Message* const message) {
message_map.send(message);
}
void EventDispatcher::set_display_sleep(const bool sleep) {
// TODO: Distribute display sleep message more broadly, shut down data generation
// on baseband side, since all that data is being discarded during sleep.