Skip to content

[docs] State machine event handler semantics: atomic execution? #551

Answered by oberstet
oberstet asked this question in Q&A
Discussion options

You must be logged in to vote

thanks for keeping this open and moving to a discussion - yeah, absolutely, isn't "an issue", but a discussion about P and semantics.


Not sure if this is what you are hinting towards in your last message?

yes, that was what I was hinting at: yield control, and thus inserting a branching point in the non-deterministic state sequence. however, calling receive within a state machine event handler will block until there is a message I guess. calling send would not, as message queues are unlimited size.

I don't understand the semantics fully, eg if it is possible to yield control within an event handler, and since an event handler can have local variables, this requires to save the local ex…

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@oberstet
Comment options

Answer selected by ankushdesai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #550 on January 11, 2023 23:47.