.. index:: pair: namespace; pocketfft::detail::threading .. _doxid-namespacepocketfft_1_1detail_1_1threading: namespace pocketfft::detail::threading ====================================== .. toctree:: :hidden: struct_pocketfft_detail_threading_aligned_allocator.rst class_pocketfft_detail_threading_concurrent_queue.rst class_pocketfft_detail_threading_latch.rst class_pocketfft_detail_threading_thread_pool.rst Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block namespace threading { // structs template struct :ref:`aligned_allocator`; // classes template class :ref:`concurrent_queue`; class :ref:`latch`; class :ref:`thread_pool`; // global variables static const size_t :target:`max_threads` = std::max(1u, std::thread::hardware_concurrency()); // global functions size_t& :target:`thread_id`(); size_t& :target:`num_threads`(); :ref:`thread_pool`& :target:`get_pool`(); template void :ref:`thread_map`(size_t nthreads, Func f); } // namespace threading .. _details-namespacepocketfft_1_1detail_1_1threading: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Global Functions ---------------- .. index:: pair: function; thread_map .. _doxid-pocketfft_8hpp_1a4fcf674db39f0e2c1c59d48491daed6e: .. ref-code-block:: cpp :class: doxyrest-title-code-block template void thread_map(size_t nthreads, Func f) Map a function f over nthreads