Change spdk_thread_exit() to nest a wrapper function, spdk_thread_exit() and a static function made of function body. Include the check if the state is running into the wrapper function. These will make the following patches easier. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I81a57407acb772cd869819f2fac6665f61935369 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1642 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> |
||
---|---|---|
.. | ||
Makefile | ||
thread.c |