diff options
author | Donald Sharp <sharpd@nvidia.com> | 2022-05-20 15:53:44 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2022-05-20 15:53:44 +0200 |
commit | cfb9e0ee595385f938b62b1a67d2650c91bcc8ee (patch) | |
tree | 0404cf43ce5eb24d68c1b44a52c2ac9baa270721 /lib/thread.c | |
parent | ospf6d: Clean up thread interface (diff) | |
download | frr-cfb9e0ee595385f938b62b1a67d2650c91bcc8ee.tar.xz frr-cfb9e0ee595385f938b62b1a67d2650c91bcc8ee.zip |
lib: Make thread_is_scheduled a static inline
For performance, yo.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/thread.c')
-rw-r--r-- | lib/thread.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/thread.c b/lib/thread.c index 44183257b..fd79503cc 100644 --- a/lib/thread.c +++ b/lib/thread.c @@ -2143,14 +2143,6 @@ 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; -} - static ssize_t printfrr_thread_dbg(struct fbuf *buf, struct printfrr_eargs *ea, const struct thread *thread) { |