I am creating a custom statemachine and in order to be determinist, I have to “synchronise” my transitions. I’m not sure about the word “synchronize” but what I want is that when I call a function (through EventHandler), the system is like frozen before I can call another function (through EventHandler too).
It’s kinda hard to explain it precisely in english but I think you know what I mean…
I was thinking about Threading but I’d REALLY like to avoid this…
If you are looking to emulate the effect of the “synchronized” keyword from java, the best way is probably to wrap the entire method code inside