diff options
Diffstat (limited to 'core/host/task.c')
-rw-r--r-- | core/host/task.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/host/task.c b/core/host/task.c index 36cb3467c0..be7ed3c579 100644 --- a/core/host/task.c +++ b/core/host/task.c @@ -138,6 +138,11 @@ test_mockable void interrupt_enable(void) pthread_mutex_unlock(&interrupt_lock); } +inline int is_interrupt_enabled(void) +{ + return !interrupt_disabled; +} + static void _task_execute_isr(int sig) { in_interrupt = 1; |