Loading
examples: keep global channel for thread example
Thread example demonstrates sending of a message to all channels. However, exemplary channel was destroyed right after creation and no channels existed. Thus, io_device_send_msg_fn was never called. Keep channel active in global variable until io device is unregistered to showcase threading capabilities. Change-Id: Ie8a3037d4dd23686d5157d8412d8c3336d15496b Signed-off-by:Artsiom Koltun <artsiom.koltun@intel.com> Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/26325 Community-CI: Mellanox Build Bot Tested-by:
SPDK Automated Test System <spdkbot@gmail.com> Reviewed-by:
Changpeng Liu <changpeliu@tencent.com> Reviewed-by:
Jim Harris <jim.harris@nvidia.com>