swift
Public Member Functions | Static Public Member Functions | List of all members
swift::misc::CThreadUtils Class Reference

Utility class for threaded operations. More...

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? More...
 
static bool thisIsMainThread ()
 Is the current thread the application thread? More...
 
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

◆ 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: