Xmipp
v3.23.11-Nereus
|
#include <xmipp_threads.h>
Public Member Functions | |
Thread () | |
virtual | ~Thread () |
virtual void | run ()=0 |
void | start () |
Class wrapping around the pthreads. This class will ease the way to launch threads with a more object oriented, approach.
Definition at line 192 of file xmipp_threads.h.
Thread::Thread | ( | ) |
Default constructor. This constructor just initialize the pthread_mutex_t structure with its defaults values, just like static initialization with PTHREAD_MUTEX_INITIALIZER
Definition at line 126 of file xmipp_threads.cpp.
|
virtual |
Destructor.
Definition at line 130 of file xmipp_threads.cpp.
|
pure virtual |
This function should be implemented in subclasses and will be the main threads working function.
Implemented in FeaturesThread.
void Thread::start | ( | ) |
This function should not be re-implemented in sub-classes. This is the function to be called to start the run() in a separated thread.
Definition at line 135 of file xmipp_threads.cpp.