Repository navigation
feat(nx-rt-core): take the next message the system has posted - #168
Merged
Merged
Conversation
Second part of the applet message pump to move. Acting on a message was already here; getting one was not, so the pump had a body and no way to be fed. - `poll_message` waits on the message event with a zero timeout and reads the queue when it is signalled, which is the poll a program drives its own loop from - Nothing waiting is `Ok(None)` rather than an error: it is what most passes of a loop find, and a caller should not have to sort it out of a failure - A queue that will not hand over a waiting message is reported rather than fatal, unlike the C path that aborts the process on it: nothing is consumed by a refused request, so the caller loses only this pass - The wait deliberately leaves the event signalled, as the system does: clearing it here would open a window in which an arriving message signals nothing and is noticed only when the next one follows it - No override changed and no C symbol moved; the pump that joins these two parts comes next Signed-off-by: Lorenzo Delgado <lnsdev@proton.me>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Second part of the applet message pump to move. Acting on a message was already here; getting one was not, so the pump had a body and no way to be fed.
poll_messagewaits on the message event with a zero timeout and reads the queue when it is signalled, which is the poll a program drives its own loop fromOk(None)rather than an error: it is what most passes of a loop find, and a caller should not have to sort it out of a failure