NeoPZ
Classes | Public Member Functions | Private Attributes | List of all members
synchronized_threads_t Class Reference

Classes

struct  thread_arg_t
 

Public Member Functions

 synchronized_threads_t ()
 
void execute_n_threads (unsigned n, void(*init_routine)(int), void(*parallel_routine)(int))
 

Private Attributes

void(* init_routine )(int)
 
void(* parallel_routine )(int)
 
std::vector< pthread_t > threads
 

Detailed Description

Definition at line 324 of file numatst.cpp.

Constructor & Destructor Documentation

◆ synchronized_threads_t()

synchronized_threads_t::synchronized_threads_t ( )
inline

Definition at line 327 of file numatst.cpp.

Member Function Documentation

◆ execute_n_threads()

void synchronized_threads_t::execute_n_threads ( unsigned  n,
void(*)(int)  init_routine,
void(*)(int)  parallel_routine 
)

Member Data Documentation

◆ init_routine

void(* synchronized_threads_t::init_routine) (int)
private

Initialization routine. Called before the cond mutex.

Definition at line 360 of file numatst.cpp.

◆ parallel_routine

void(* synchronized_threads_t::parallel_routine) (int)
private

Parallel routine. Called before the cond mutex.

Definition at line 362 of file numatst.cpp.

◆ threads

std::vector<pthread_t> synchronized_threads_t::threads
private

Definition at line 363 of file numatst.cpp.


The documentation for this class was generated from the following file: