-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FL-3847, FL-3513] Thread Signals #3730
Conversation
Compiled f7 firmware for commit |
Can this be expanded to send arbitrary (user) signals from CLI to the application? Everything in this PR appears to be ready for that, except for An ability to send arbitrary signals via e.g. EDIT: Realistically I don't see a way to ensure that this callback runs in the correct context, but for the end user it's easy if they just serialize signals via a queue. |
Co-authored-by: Silent <[email protected]>
done.
No, this is just a settable callback, the recipient is responsible for queueing the request, if necessary, on their side (this highly depends on the concrete implementation of the handling mechanism). |
Great! Just one nitpick - if instead of You should be able to easily do it with |
@CookiePLMonster nice idea, we'll see how to best implement it a bit later. |
Sounds good! As I mentioned, |
What's new
Loader
andEventLoop
subsystemsloader close
CLI subcommandloader info
is executed (FL-3513)Verification
EventLoop
-based application, for example:loader open NFC
loader info
command. The application name should be printed.loader close
command. The application should exit and the corresponding message should be printed.EventLoop
subsystem.Checklist (For Reviewer)