Xmipp
v3.23.11-Nereus
|
Classes | |
class | Mutex |
class | Condition |
class | Barrier |
class | Thread |
class | ThreadManager |
class | ThreadArgument |
class | ParallelTaskDistributor |
class | ThreadTaskDistributor |
struct | mybarrier_t |
Functions | |
void * | _singleThreadMain (void *data) |
void * | _threadMain (void *data) |
Old parallel stuff. | |
typedef struct mybarrier_t | barrier_t |
int | barrier_init (barrier_t *barrier, int needed) |
int | barrier_destroy (barrier_t *barrier) |
int | barrier_wait (barrier_t *barrier) |
typedef struct mybarrier_t barrier_t |
Barrier structure
void* _singleThreadMain | ( | void * | data | ) |
This function is used from the Thread class to provide a wrapper over pthreads. This will be the real function called from pthread_create and from this the function thread.run() will be called.
Definition at line 146 of file xmipp_threads.cpp.
void* _threadMain | ( | void * | data | ) |
This function is used in ThreadManager as the main threads function to live in.
function to start running the threads. Should be external and declared as friend
Definition at line 173 of file xmipp_threads.cpp.
int barrier_destroy | ( | barrier_t * | barrier | ) |
Barrier destruction
Definition at line 375 of file xmipp_threads.cpp.
int barrier_init | ( | barrier_t * | barrier, |
int | needed | ||
) |
Barrier initialization
Definition at line 366 of file xmipp_threads.cpp.
int barrier_wait | ( | barrier_t * | barrier | ) |
Wait at the barrier
Definition at line 382 of file xmipp_threads.cpp.