Spdk/test/common
Tomasz Zawadzki d7aff25df0 ut/common: add poll_thread_times() to poll select number of iterations
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>
2020-02-21 09:35:27 +00:00
..
config scripts/pkgdep.sh: Add flag for developer tools installation 2020-02-18 14:42:16 +00:00
lib ut/common: add poll_thread_times() to poll select number of iterations 2020-02-21 09:35:27 +00:00
autotest_common.sh test/autotest_common: cleanup discover_bdevs 2020-02-21 09:34:14 +00:00
skipped_build_files.txt autobuild: Confirm we are building all files w/ scanbuild 2020-01-22 13:50:17 +00:00
skipped_tests.txt test/bdev: remove the gpt conf file / parameterize tests 2020-01-22 13:50:17 +00:00