From 13c416c027404482a3461591f63a87c9286d050c Mon Sep 17 00:00:00 2001 From: Ben Walker Date: Tue, 30 Apr 2019 09:52:23 -0700 Subject: [PATCH] CHANGELOG: Update thread section Change-Id: Ie8f167e8ea9a72bfb559f644c6556c66ec0256b4 Signed-off-by: Ben Walker Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/452689 Reviewed-by: Jim Harris Reviewed-by: Darek Stojaczyk Tested-by: SPDK CI Jenkins --- CHANGELOG.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 81db339fd..2a8510c6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,11 +42,22 @@ strip_size. The strip_size rpc param is deprecated. ### thread -Added spdk_thread_has_pollers() function to verify if there are -any registered pollers to be run on the thread. +Added spdk_thread_has_pollers() function to verify if there are any registered +pollers to be run on the thread. Added spdk_thread_is_idle() function to check +if there are any scheduled operations to be performed on the thread at given +time. -Added spdk_thread_is_idle() function to check if there are any scheduled operations -to be performed on the thread at given time. +spdk_thread_create() now takes an optional CPU affinity mask that is passed to +the scheduler. + +spdk_thread_lib_init() now takes an optional context size. For each thread +created, an additional region of memory of this size will be allocated. A +pointer to this region of memory can be obtained by calling +spdk_thread_get_ctx(). The inverse operation is also available via +spdk_thread_get_from_ctx(). + +spdk_thread_poll() now optionally accepts the current time, in ticks. This can +be used to avoid some calls to spdk_get_ticks() internally. spdk_app_start() now only accepts a single context argument.