mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-29 17:49:14 -04:00
Simplify app->baseband message handling.
No need for a FIFO when all messages are intended to be synchronous.
This commit is contained in:
parent
61325e4696
commit
d41c6ee36a
4 changed files with 37 additions and 36 deletions
|
@ -87,9 +87,11 @@ void EventDispatcher::dispatch(const eventmask_t events) {
|
|||
}
|
||||
|
||||
void EventDispatcher::handle_baseband_queue() {
|
||||
shared_memory.baseband_queue.handle([this](Message* const message) {
|
||||
this->on_message(message);
|
||||
});
|
||||
const auto message = shared_memory.baseband_message;
|
||||
if( message ) {
|
||||
on_message(message);
|
||||
shared_memory.baseband_message = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
void EventDispatcher::on_message(const Message* const message) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue