timers: simplify stop-timer.
parent
a27f560475
commit
4dcfefc0b9
|
@ -88,10 +88,8 @@ PRIVATE>
|
||||||
|
|
||||||
: stop-timer ( timer -- )
|
: stop-timer ( timer -- )
|
||||||
dup quotation-running?>> [
|
dup quotation-running?>> [
|
||||||
f >>thread drop
|
dup thread>> [ interrupt ] when*
|
||||||
] [
|
] unless f >>thread drop ;
|
||||||
[ [ interrupt ] when* f ] change-thread drop
|
|
||||||
] if ;
|
|
||||||
|
|
||||||
: restart-timer ( timer -- )
|
: restart-timer ( timer -- )
|
||||||
dup quotation-running?>> [
|
dup quotation-running?>> [
|
||||||
|
|
Loading…
Reference in New Issue