NeoPZ
|
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) |
int pz::get_number_of_cores | ( | ) |
Definition at line 6 of file pzparallel.h.
Referenced by parallel_for().
void pz::parallel_for | ( | int | n, |
body_t & | obj | ||
) |
Definition at line 24 of file pzparallel.h.
References get_number_of_cores(), pz::thread_arg< body_t >::i, nthreads, pz::thread_arg< body_t >::obj, and test::threads.
Referenced by ParallelAssembleTaskMatrix< TVar, TSubStruct >::addWorkItem(), ParallelAssembleTask< TVar, TSubStruct >::addWorkItem(), kernel(), main(), TPZStructMatrixCS::MultiThread_Assemble(), parallel_assemble_task_t< TVar >::push_work_item(), parallel_assemble_task_t< TVar >::run_serial(), and par_assemble_task_t< TVar >::run_serial().
|
static |
Definition at line 17 of file pzparallel.h.
References pz::thread_arg< body_t >::i, and pz::thread_arg< body_t >::obj.