ARMmbed / mbed-events

DEPRECATED! This project has moved to mbed-os
https://github.com/ARMmbed/mbed-os/tree/master/events
Apache License 2.0
11 stars 6 forks source link

Add dispatch_forever as a separate function with no timeout #20

Closed geky closed 7 years ago

geky commented 7 years ago

Unfortunately, with the recent addition of a type-infering callback function, the overloaded dispatch member function creates an ambiguity when passed to threads.

With dispatch_forever function, a thread for the event queue can be started simply like this:

t.start(&queue, &EventQueue::dispatch_forever);

Thanks to @bogdanm for the find/solution

bogdanm commented 7 years ago

:+1: