21 #ifndef THREAD_H_INCLUDED
22 #define THREAD_H_INCLUDED
84 static void threadFunction(
Thread* thisThread);
91 mutable std::mutex runningMutex_;
96 #endif // THREAD_H_INCLUDED
virtual void run()=0
This is the method that will be executed by the thread.
bool isStopped() const
Returns true if the thread was stopped.
Definition: Thread.cpp:61
void join()
Joins the thread.
Definition: Thread.cpp:56
Thread()
Constructor.
Definition: Thread.cpp:25
void start()
Starts the Thread.
Definition: Thread.cpp:37
virtual ~Thread()
Destructor.
Definition: Thread.cpp:33
A wrapper for the std::thread wrapping it into a Java-style thread object.
Definition: Thread.h:39
void stop()
Sets the internal flag stopped_ to true.
Definition: Thread.cpp:51