Spdk/lib/thread
Jim Harris 8203e68e24 thread: add spdk_thread_is_running()
This function can be useful to query if a thread
had spdk_thread_exit() called on it yet.  Internally
we have both EXITING and EXITED state - so
!spdk_thread_is_running() can be used to detect a
thread that is in either of those states.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I2f6fb024a6b1bc895fdc5132c722abc10f5d30f9
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15512
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
2022-11-23 08:22:04 +00:00
..
Makefile thread: add spdk_thread_get_app_thread 2022-11-23 08:22:04 +00:00
spdk_thread.map thread: add spdk_thread_is_running() 2022-11-23 08:22:04 +00:00
thread_internal.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
thread.c thread: add spdk_thread_is_running() 2022-11-23 08:22:04 +00:00