KanoopCommonQt 2.1.1
Kanoop foundational Qt utility library
Loading...
Searching...
No Matches
ThreadUtil Class Reference

ThreadHelper. More...

#include <threadutil.h>

Static Public Member Functions

static QString currentThreadString ()
 Return a human-readable description of the currently executing thread.
 
static QString threadString (QThread *thread)
 Return a human-readable description of a specific thread.
 
static void spinSleep (uint64_t usecs)
 Spin-wait (busy-loop) for the specified number of microseconds.
 

Detailed Description

ThreadHelper.

Some static helper methods for create a string describing threads.

Stephen Punak, July 08 2019

Static helper methods for obtaining descriptive strings about QThread objects.

Definition at line 17 of file threadutil.h.

Member Function Documentation

◆ currentThreadString()

static QString ThreadUtil::currentThreadString ( )
static

Return a human-readable description of the currently executing thread.

Returns
String identifying the current thread (e.g. address and name)

◆ spinSleep()

static void ThreadUtil::spinSleep ( uint64_t  usecs)
inlinestatic

Spin-wait (busy-loop) for the specified number of microseconds.

Parameters
usecsDuration to wait in microseconds

◆ threadString()

static QString ThreadUtil::threadString ( QThread *  thread)
static

Return a human-readable description of a specific thread.

Parameters
threadPointer to the QThread to describe
Returns
String identifying the thread (e.g. address and name)

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