diff options
| author | Jeff Epler <jepler@gmail.com> | 2019-11-20 10:15:44 -0600 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2019-11-20 14:37:13 -0600 |
| commit | 46c5775ba4b9c4905f8e3f4c1842c2c6c04d8fb0 (patch) | |
| tree | b199ab81a68cdd6767dc0f3795c7ae2f904ca052 /supervisor/shared/tick.h | |
| parent | a9baa0f954ec757ef1e3990af136a4f0b3cb2b1e (diff) | |
supervisor: tick: add supervisor_fake_tick
Diffstat (limited to 'supervisor/shared/tick.h')
| -rw-r--r-- | supervisor/shared/tick.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/supervisor/shared/tick.h b/supervisor/shared/tick.h index e747de2d8..7ce8281ba 100644 --- a/supervisor/shared/tick.h +++ b/supervisor/shared/tick.h @@ -36,6 +36,13 @@ * interrupt context. */ extern void supervisor_tick(void); +/** @brief Cause background tasks to be called soon + * + * Normally, background tasks are only run once per tick. For other cases where + * an event noticed from an interrupt context needs to be completed by a background + * task activity, the interrupt can call supervisor_fake_tick. + */ +extern void supervisor_fake_tick(void); /** @brief Get the lower 32 bits of the time in milliseconds * * This can be more efficient than supervisor_ticks_ms64, for sites where a wraparound |
