swift
Loading...
Searching...
No Matches
swift::misc::CThreadUtils Class Reference

Utility class for threaded operations. More...

#include <threadutils.h>

Public Member Functions

 CThreadUtils ()=delete
 No constructor.

Static Public Member Functions

static bool isInThisThread (const QObject *toBeTested)
 Is the current thread the object's thread?
static bool thisIsMainThread ()
 Is the current thread the application thread?
static QString currentThreadInfo ()
 Info about current thread, for debug messages.

Detailed Description

Utility class for threaded operations.

Definition at line 50 of file threadutils.h.

Member Function Documentation

◆ currentThreadInfo()

QString swift::misc::CThreadUtils::currentThreadInfo ( )
static

Info about current thread, for debug messages.

Definition at line 23 of file threadutils.cpp.

◆ isInThisThread()

bool swift::misc::CThreadUtils::isInThisThread ( const QObject * toBeTested)
static

Is the current thread the object's thread?

Deprecated
Todo
Refactor to inline method

Definition at line 16 of file threadutils.cpp.

◆ thisIsMainThread()

bool swift::misc::CThreadUtils::thisIsMainThread ( )
static

Is the current thread the application thread?

Deprecated
Todo
Refactor to inline method

Definition at line 21 of file threadutils.cpp.


The documentation for this class was generated from the following files: