Function wt::thread_pool::tpool_worker_tid

Function Documentation

inline auto wt::thread_pool::tpool_worker_tid() noexcept

Returns the index of this thread pool worker, guaranteed to be between 0 and tpool_t::thread_count()-1. Returns tpool_tids_t::default_tid if this thread is not a thread pool worker.