Spdk/lib/event
Shuhei Matsumoto abb942bda1 lib/event: Voluntary thread termination by spdk_thread_exit()
In the reactor main loop, _spdk_reactor_run(), check if both
spdk_thread_is_exited() and spdk_thread_is_idle() return true,
and if they are true, then remove it from the queue and call
spdk_thread_destroy() to delete it.

By previous patches, the exited thread does not accept any
new message or poller, all pending messages are processed, and
all unregistering pollers are completed. Hence we only need to
have very simple check in the reactor main loop.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: Ib678245de98a5c050843e6435026bdcf8b6c75c7
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/507
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
2020-02-13 09:51:15 +00:00
..
app.c lib/app: Change signal handler to use spdk_thread_send_critical_msg 2020-01-13 12:42:49 +00:00
json_config.c RPC: rename start_subsystem_init to framework_start_init 2019-09-30 21:13:41 +00:00
Makefile lib/event: move rpc and subsystems dirs to module 2019-08-22 16:29:49 +00:00
reactor.c lib/event: Voluntary thread termination by spdk_thread_exit() 2020-02-13 09:51:15 +00:00
rpc.c rpc: add spdk_rpc_verify_methods() 2019-11-06 15:19:48 +00:00
subsystem.c lib/event: remove app.c dependency from subsystem initialization 2019-08-28 15:26:12 +00:00