Adrian wrote
> It should be pointed out that neither of the methods Aaron gives will
> "pause" any asychronous timers.
Good point. I had forgotten about that case.
> To pause the timers you would have to dlocal either pop_asts_enabled or
> pop_enable_interrupts (depending on your version of Poplog). See
> REF * ASYNC for more details.
(That REF file is not available in Poplog V14.2 or earlier. However I
presume REF SIGNALS will have the relevant information.)
Users who want only a subset of their timed procedures to do nothing
during a pause might use a global boolean variable to control them, and
change the value of that variable locally within the pause procedure.
Aaron
|