Spdk/lib/event
Shuhei Matsumoto fbb77a56c8 lib/event: Factor out the main polling loop from _spdk_reactor_run()
It was too difficult for us to add unit test for _spdk_reactor_run()
because the main polling loop in _spdk_reactor_run() was infinite
if g_reactor_state is SPDK_REACTOR_STATE_RUNNING.

Factor out the main polling loop and rusage update in _spdk_reactor_run()
into a helper function reactor_run().

This improves the code readability as well.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: Ia26db14f44026fefd696443227c16d2be4166832
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1186
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
2020-03-12 09:04:02 +00:00
..
app.c app: added --json-ignore-init-errors 2020-02-13 09:53:02 +00:00
json_config.c app: added --json-ignore-init-errors 2020-02-13 09:53:02 +00:00
Makefile lib/event: move rpc and subsystems dirs to module 2019-08-22 16:29:49 +00:00
reactor.c lib/event: Factor out the main polling loop from _spdk_reactor_run() 2020-03-12 09:04:02 +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