MLX
Loading...
Searching...
No Matches
pocketfft::detail::threading Namespace Reference

Classes

struct  aligned_allocator
 
class  concurrent_queue
 
class  latch
 
class  thread_pool
 

Functions

size_t & thread_id ()
 
size_t & num_threads ()
 
thread_poolget_pool ()
 
template<typename Func >
void thread_map (size_t nthreads, Func f)
 Map a function f over nthreads.
 

Variables

static const size_t max_threads = std::max(1u, std::thread::hardware_concurrency())
 

Function Documentation

◆ get_pool()

thread_pool & pocketfft::detail::threading::get_pool ( )
inline

◆ num_threads()

size_t & pocketfft::detail::threading::num_threads ( )
inline

◆ thread_id()

size_t & pocketfft::detail::threading::thread_id ( )
inline

◆ thread_map()

template<typename Func >
void pocketfft::detail::threading::thread_map ( size_t nthreads,
Func f )

Map a function f over nthreads.

Variable Documentation

◆ max_threads

const size_t pocketfft::detail::threading::max_threads = std::max(1u, std::thread::hardware_concurrency())
static