jp-embedded / scxmlcc

The SCXML state machine to C++ compiler
GNU General Public License v3.0
140 stars 34 forks source link

Add some system variables to the data model #82

Closed sstiller closed 5 years ago

sstiller commented 5 years ago

Adding the system variables _name and _sessionid https://www.w3.org/TR/scxml/#SystemVariables

For _sessionid, my best idea was using a pointer. There should be no collision on the system. Other ideas like random number generator or thread ids or hashes based on different things, add many dependencies and are not really better, if you want to minimize the overhead. But I'm open for other ideas.

jp-embedded commented 5 years ago

I think this looks good. I don't have any better ideas regarding this.