namespace pocketfft::detail::threading¶
Overview¶
namespace threading {
// structs
template <typename T>
struct aligned_allocator;
// classes
template <typename T>
class concurrent_queue;
class latch;
class thread_pool;
// global variables
static const size_t max_threads = std::max(1u, std::thread::hardware_concurrency());
// global functions
size_t& thread_id();
size_t& num_threads();
thread_pool& get_pool();
template <typename Func>
void thread_map(size_t nthreads, Func f);
} // namespace threading
Detailed Documentation¶
Global Functions¶
template <typename Func>
void thread_map(size_t nthreads, Func f)
Map a function f over nthreads