QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
Temporarily moves a QObject to the current thread, then resets it back to nullptr thread on destruction. More...
#include <qgsthreadingutils.h>
Public Member Functions | |
QgsScopedAssignObjectToCurrentThread (const QgsScopedAssignObjectToCurrentThread &other)=delete | |
QgsScopedAssignObjectToCurrentThread (QObject *object) | |
Assigns object to the current thread. | |
~QgsScopedAssignObjectToCurrentThread () | |
QgsScopedAssignObjectToCurrentThread & | operator= (const QgsScopedAssignObjectToCurrentThread &)=delete |
Temporarily moves a QObject to the current thread, then resets it back to nullptr thread on destruction.
Definition at line 82 of file qgsthreadingutils.h.
|
inline |
Assigns object to the current thread.
If object is already assigned to the current thread, no action will be taken.
Definition at line 93 of file qgsthreadingutils.h.
|
inline |
Definition at line 101 of file qgsthreadingutils.h.
|
delete |
|
delete |