Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
threadcheck.cpp File Reference

The thread checks of threadcheck_p.h. More...

#include "threadcheck_p.h"
#include <QtCore/QCoreApplication>
#include <QtCore/QThread>

Namespaces

namespace  Sonde
 Embeddable Model Context Protocol server for Qt applications.

Functions

bool Sonde::Detail::checkGuiThread (const char *function)
 Whether this is the GUI thread (the application object's).
bool Sonde::Detail::checkObjectThread (const QObject *owner, const char *function)
 Whether this is owner's thread.

Detailed Description

The thread checks of threadcheck_p.h.

Function Documentation

◆ checkGuiThread()

bool Sonde::Detail::checkGuiThread ( const char * function)

Whether this is the GUI thread (the application object's).

If it isn't, says so with qCritical(), naming function, and asserts: the caller races with the GUI. True if there is no application object yet.

◆ checkObjectThread()

bool Sonde::Detail::checkObjectThread ( const QObject * owner,
const char * function )

Whether this is owner's thread.

If it isn't, says so with qCritical(), naming function, and asserts.