Right now functions poll_thread() and poll_threads(), polled always until there were no further messages to process. This allows to put next operation to execute only after previous one completed. Function poll_thread_times() allows to poll certain thread for exact number of executions. If 0 is passed to max_polls, then this function executes single message and all pollers, until no messages are left. With this change it is possible to only run a thread selected number of iterations. Allowing to add another operation without first one finishing. It will become useful in blobstore UT, where two operations will be executed with slight delay between them. Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I4a6537695389f30130ea2fd2fd43d7b2cb2dea39 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/772 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> |
||
---|---|---|
.. | ||
nvme | ||
test_env.c | ||
test_sock.c | ||
ut_multithread.c |