MPMT v1.7.4
Thread Class Referencefinal

Common thread functions. More...

#include <thread.hpp>

Static Public Member Functions

static void setMain () noexcept
 Sets current thread as main.
 
static bool isCurrentMain () noexcept
 Returns true if current thread is main.
 
static void getName (char *name, size_t size) noexcept
 Returns current thread name.
 
static void setName (const string &name) noexcept
 Sets current thread name.
 
static void setForegroundPriority () noexcept
 Sets current thread priority to foreground.
 
static void setBackgroundPriority () noexcept
 Sets current thread priority to background.
 

Detailed Description

Common thread functions.

See the thread.h

Member Function Documentation

◆ setMain()

static void setMain ( )
inlinestaticnoexcept

Sets current thread as main.

See the setMainThread().

◆ isCurrentMain()

static bool isCurrentMain ( )
inlinestaticnoexcept

Returns true if current thread is main.

See the isCurrentThreadMain().

◆ getName()

static void getName ( char * name,
size_t size )
inlinestaticnoexcept

Returns current thread name.

See the getThreadName().

Parameters
[out]namepointer to the thread name string
sizemaximal name string capacity (including '\0')

◆ setName()

static void setName ( const string & name)
inlinestaticnoexcept

Sets current thread name.

See the setThreadName().

Parameters
[in]namethread name string

◆ setForegroundPriority()

static void setForegroundPriority ( )
inlinestaticnoexcept

Sets current thread priority to foreground.

See the setThreadForegroundPriority().

◆ setBackgroundPriority()

static void setBackgroundPriority ( )
inlinestaticnoexcept

Sets current thread priority to background.

See the setThreadBackgroundPriority().