File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ function execute(ev::AbstractEvent, proc::Process)
31
31
set_active_process (env, proc)
32
32
target = proc. fsmi (value (ev))
33
33
reset_active_process (env)
34
- if done ( proc. fsmi)
34
+ if proc. fsmi. _state == 0xff
35
35
schedule (proc; value= target)
36
36
else
37
37
proc. target = state (target) == processed ? timeout (env; value= value (target)) : target
56
56
57
57
function interrupt (proc:: Process , cause:: Any = nothing )
58
58
env = environment (proc)
59
- if ! done ( proc. fsmi)
59
+ if proc. fsmi != 0xff
60
60
proc. target isa Initialize && schedule (proc. target; priority= typemax (Int8))
61
61
target = schedule (Interrupt (env); priority= typemax (Int8), value= InterruptException (active_process (env), cause))
62
62
@callback execute_interrupt (target, proc)
You can’t perform that action at this time.
0 commit comments