summaryrefslogtreecommitdiff
path: root/lib/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/thread.c')
-rw-r--r--lib/thread.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/thread.c b/lib/thread.c
index 835aa38115..71d7798af5 100644
--- a/lib/thread.c
+++ b/lib/thread.c
@@ -2059,3 +2059,11 @@ void debug_signals(const sigset_t *sigs)
zlog_debug("%s: %s", __func__, buf);
}
+
+bool thread_is_scheduled(struct thread *thread)
+{
+ if (thread == NULL)
+ return false;
+
+ return true;
+}