NeoPZ
Classes | Functions
pz Namespace Reference

Classes

struct  thread_arg
 

Functions

int get_number_of_cores ()
 
template<typename body_t >
static void * thread_work (void *parm)
 
template<typename body_t >
void parallel_for (int n, body_t &obj)
 

Function Documentation

◆ get_number_of_cores()

int pz::get_number_of_cores ( )

Definition at line 6 of file pzparallel.h.

Referenced by parallel_for().

◆ parallel_for()

template<typename body_t >
void pz::parallel_for ( int  n,
body_t &  obj 
)

◆ thread_work()

template<typename body_t >
static void* pz::thread_work ( void *  parm)
static

Definition at line 17 of file pzparallel.h.

References pz::thread_arg< body_t >::i, and pz::thread_arg< body_t >::obj.