summaryrefslogtreecommitdiff
path: root/lib/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/thread.h')
-rw-r--r--lib/thread.h9
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);