Xmipp
v3.23.11-Nereus
|
#include <xmipp_threads.h>
Public Member Functions | |
ThreadArgument () | |
ThreadArgument (int id, ThreadManager *manager=NULL, void *data=NULL) | |
int | getNumberOfThreads () |
Public Attributes | |
int | thread_id |
The thread id. More... | |
int | threads |
Number of threads. More... | |
void * | workClass |
The class in which threads will be working. More... | |
void * | data |
Friends | |
class | ThreadManager |
void * | _threadMain (void *data) |
Class to pass arguments to threads functions. The argument passed can be obtained casting the void * data received in the function.
Definition at line 337 of file xmipp_threads.h.
ThreadArgument::ThreadArgument | ( | ) |
Definition at line 154 of file xmipp_threads.cpp.
ThreadArgument::ThreadArgument | ( | int | id, |
ThreadManager * | manager = NULL , |
||
void * | data = NULL |
||
) |
Definition at line 163 of file xmipp_threads.cpp.
|
inline |
Definition at line 352 of file xmipp_threads.h.
|
friend |
function to start running the threads. Should be external and declared as friend
This function is used in ThreadManager as the main threads function to live in.
Definition at line 173 of file xmipp_threads.cpp.
|
friend |
Definition at line 350 of file xmipp_threads.h.
void* ThreadArgument::data |
Definition at line 345 of file xmipp_threads.h.
int ThreadArgument::thread_id |
The thread id.
Definition at line 342 of file xmipp_threads.h.
int ThreadArgument::threads |
Number of threads.
Definition at line 343 of file xmipp_threads.h.
void* ThreadArgument::workClass |
The class in which threads will be working.
Definition at line 344 of file xmipp_threads.h.