diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2022-05-20 18:32:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-20 18:32:07 +0200 |
| commit | 9807de3be368efdbb53e55a480aa3dd5ce67233f (patch) | |
| tree | f2013855911bf2888fbb756f56dea500fde9d65f /lib/thread.h | |
| parent | 197191a0cecb7a25935327c93d9740272c6080f2 (diff) | |
| parent | cfb9e0ee595385f938b62b1a67d2650c91bcc8ee (diff) | |
Merge pull request #11223 from donaldsharp/ospf_shenanigans
Diffstat (limited to 'lib/thread.h')
| -rw-r--r-- | lib/thread.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/thread.h b/lib/thread.h index a2049ae52a..acdcec51de 100644 --- a/lib/thread.h +++ b/lib/thread.h @@ -283,7 +283,14 @@ extern pthread_key_t thread_current; extern char *thread_timer_to_hhmmss(char *buf, int buf_size, struct thread *t_timer); -extern bool thread_is_scheduled(struct thread *thread); +static inline bool thread_is_scheduled(struct thread *thread) +{ + if (thread) + return true; + + return false; +} + /* Debug signal mask */ void debug_signals(const sigset_t *sigs); |
