diff options
author | Matias Elo <matias.elo@nokia.com> | 2019-10-21 09:38:48 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2021-10-04 11:52:54 +0300 |
commit | 7ea90224a1c59cc26bd1c0c44fc1cab906ba798b (patch) | |
tree | 955a972be1b0f08e535404bc9af95898ce6d7edb /platform/linux-dpdk/include | |
parent | ade7bd3fb7ee4b4bdf156bd2f1b6181fb72aa219 (diff) |
linux-dpdk: thread: add counter for tracking thread mask changes
Add epoch counter for tracking changes to the global thread mask. An
internal helper function _odp_thread_thrmask_epoch() is added for reading
the epoch value.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Diffstat (limited to 'platform/linux-dpdk/include')
-rw-r--r-- | platform/linux-dpdk/include/odp_thread_internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/platform/linux-dpdk/include/odp_thread_internal.h b/platform/linux-dpdk/include/odp_thread_internal.h index c95786810..6342cc420 100644 --- a/platform/linux-dpdk/include/odp_thread_internal.h +++ b/platform/linux-dpdk/include/odp_thread_internal.h @@ -23,6 +23,13 @@ extern "C" { */ int _odp_thread_cpu_ids(unsigned int cpu_ids[], int max_num); +/** + * Read current epoch value of thread mask all + * + * @return Thread mask all epoch value + */ +uint64_t _odp_thread_thrmask_epoch(void); + #ifdef __cplusplus } #endif |