QGIS API Documentation 4.3.0-Master (52aa6503bed)
Loading...
Searching...
No Matches
qgsthreadingutils.h File Reference
#include "qgsconfig.h"
#include <memory>
#include <shared_mutex>
#include <utility>
#include "qgis_core.h"
#include "qgsfeedback.h"
#include <QString>
#include <QThread>
#include <QSemaphore>
#include <QCoreApplication>
Include dependency graph for qgsthreadingutils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AtomicSharedPtr< T >
 An atomic shared_ptr, for use in LLVM/clang builds (temporarily, until LLVM adds support for c++20 atomic shared_ptr). More...
class  QgsScopedAssignObjectToCurrentThread
 Temporarily moves a QObject to the current thread, then resets it back to nullptr thread on destruction. More...
class  QgsScopedThreadName
 Scoped object for setting the current thread name. More...
class  QgsThreadingUtils
 Provides threading utilities for QGIS. More...

Macros

#define QGIS_CHECK_MAIN_THREAD_ACCESS
#define QGIS_CHECK_OTHER_QOBJECT_THREAD_ACCESS(other)
#define QGIS_CHECK_QOBJECT_THREAD_EQUALITY(other)
#define QGIS_PROTECT_QOBJECT_THREAD_ACCESS
#define QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL
#define SIP_NO_FILE

Macro Definition Documentation

◆ QGIS_CHECK_MAIN_THREAD_ACCESS

#define QGIS_CHECK_MAIN_THREAD_ACCESS
Value:
do \
{ \
} while ( false );

Definition at line 225 of file qgsthreadingutils.h.

◆ QGIS_CHECK_OTHER_QOBJECT_THREAD_ACCESS

#define QGIS_CHECK_OTHER_QOBJECT_THREAD_ACCESS ( other)
Value:
do \
{ \
} while ( false ); \
( void ) ( other );

Definition at line 189 of file qgsthreadingutils.h.

◆ QGIS_CHECK_QOBJECT_THREAD_EQUALITY

#define QGIS_CHECK_QOBJECT_THREAD_EQUALITY ( other)
Value:
do \
{ \
} while ( false ); \
( void ) ( other );

Definition at line 150 of file qgsthreadingutils.h.

◆ QGIS_PROTECT_QOBJECT_THREAD_ACCESS

#define QGIS_PROTECT_QOBJECT_THREAD_ACCESS
Value:
do \
{ \
} while ( false );

Definition at line 81 of file qgsthreadingutils.h.

◆ QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL

#define QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL
Value:
do \
{ \
} while ( false );

Definition at line 112 of file qgsthreadingutils.h.

◆ SIP_NO_FILE

#define SIP_NO_FILE

Definition at line 32 of file qgsthreadingutils.h.