|
KanoopCommonQt 2.1.1
Kanoop foundational Qt utility library
|
|
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. | |
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.
|
static |
Return a human-readable description of the currently executing thread.
|
inlinestatic |
Spin-wait (busy-loop) for the specified number of microseconds.
| usecs | Duration to wait in microseconds |
|
static |
Return a human-readable description of a specific thread.
| thread | Pointer to the QThread to describe |