Main Page · Modules · All Classes · Class Hierarchy |
Manages a new thread with objects. More...
#include <MSThread.hpp>
Inherits QThread.
Public Member Functions | |
virtual void | run () override |
Run the thread. More... | |
void | AddObject (QObject &object) |
Add an object to this thread. More... | |
void | RemoveObjects () |
Move the objects back to their original thread. | |
bool | IsEmpty () |
Whether object is attached to the thread. More... | |
Public Attributes | |
QMap< QObject *, QThread * > | ObjectThreads |
Remember for the original thread of the moved objects. | |
Manages a new thread with objects.
Definition at line 32 of file MSThread.hpp.
void MSThread::AddObject | ( | QObject & | object | ) |
bool MSThread::IsEmpty | ( | ) |
Whether object is attached to the thread.
Definition at line 63 of file MSThread.cpp.
|
overridevirtual |
Run the thread.
Runs the thread and moves the objects back to their original thread if the thread's main loop exits.
Definition at line 26 of file MSThread.cpp.