Draft: Interrupt callbacks
Proposed API change
Instead of blocking on xdaInterrupt::wait() and managing the interrupt status flag with xdaInterrupt::isDone() and xdaInterrupt::clearDone(), applications can register one or more callback functions which are executed when an interrupt occurs.
A thread is added to xdaInterrupt which is responsible for monitoring the interrupt and calling any registered callback functions.