I'm creating a state machine that depends on a GUI event to change from one state to the next. For example,
state A (current state)
|
|
(mouse click)
|
|
state B (future state)
The problem is I don't know how to the object representing "state A" to sit and wait for an event generated by another thread. How does that gets done?
Thanks.
state A (current state)
|
|
(mouse click)
|
|
state B (future state)
The problem is I don't know how to the object representing "state A" to sit and wait for an event generated by another thread. How does that gets done?
Thanks.