[Pvfs2-developers] state machine ending
Pete Wyckoff
pw at osc.edu
Mon Jul 24 15:07:08 EDT 2006
walt at clemson.edu wrote on Mon, 24 Jul 2006 14:47 -0400:
> 3) the state machine language has a keyword that lets you state that the
> next state is "terminate" which could be used to finish the state
> machine, but right now the code has logic that detects this and prints a
> warning that you should NOT use this. I don't know why we created this
> method and then made it illegal. Go figure!
I prefer #3 by a large margin over the other options. It's
explicit, not racy, doesn't over-use the return value for a
conceptually different event, and doesn't rely on modifying
parent state. Wonder why it was disabled.
Regarding names, STATE_COMPLETE and STATE_MACHINE_TERMINATED seem
like find candidates as you have sort of suggested.
My pocket change.
-- Pete
More information about the Pvfs2-developers
mailing list