diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2021-10-12 13:22:54 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2021-10-20 08:28:52 -0400 |
| commit | a505383d6a42259b96f5882b493f328bc1dd9301 (patch) | |
| tree | 7665fb3db4209db1b02a7f94fcfc56e03cdd235e /lib/thread.h | |
| parent | 52e458d922157f21d97ae2ee40938db560ddba6b (diff) | |
lib: Add a thread_is_scheduled function
The function thread_is_scheduled allows us to know if
the particular thread is scheduled for execution or not.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/thread.h')
| -rw-r--r-- | lib/thread.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/thread.h b/lib/thread.h index abd94ff4f0..c5f0ffbf77 100644 --- a/lib/thread.h +++ b/lib/thread.h @@ -273,6 +273,7 @@ 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); /* Debug signal mask */ void debug_signals(const sigset_t *sigs); |
