libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::jthread Struct Referencefinal

Make sure the kernel-thread is always joined in the dtor. More...

#include <jthread.hpp>

Inherits std::thread.

Public Types

using base_t = std::thread
 
using os_traits = thread_os_traits< ppd::platform_api, ppd::heavyweight_threading >
 
using thread_traits = typename os_traits::thread_traits
 

Public Member Functions

 ~jthread ()
 
void operator= (jthread &&) noexcept(true)
 
void __fastcall kernel_priority (const typename thread_traits::api_params_type::priority_type priority) noexcept(false)
 
void __fastcall kernel_affinity (const typename thread_traits::api_params_type::processor_mask_type &mask) noexcept(false)
 
void __fastcall set_name (char const *name) noexcept(false)
 
bool is_running () const noexcept(true)
 

Detailed Description

Make sure the kernel-thread is always joined in the dtor.

See also
std::thread

Definition at line 33 of file jthread.hpp.

Member Typedef Documentation

◆ base_t

Definition at line 34 of file jthread.hpp.

◆ os_traits

◆ thread_traits

Constructor & Destructor Documentation

◆ ~jthread()

jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::jthread::~jthread ( )
inline

Definition at line 51 of file jthread.hpp.

Member Function Documentation

◆ is_running()

bool jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::jthread::is_running ( ) const
inlinenoexcept

Definition at line 78 of file jthread.hpp.

Referenced by main().

◆ kernel_affinity()

void jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::jthread::kernel_affinity ( const typename thread_traits::api_params_type::processor_mask_type &  mask)
inlinenoexcept

Definition at line 68 of file jthread.hpp.

◆ kernel_priority()

void jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::jthread::kernel_priority ( const typename thread_traits::api_params_type::priority_type  priority)
inlinenoexcept

Definition at line 63 of file jthread.hpp.

◆ operator=()

void jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::jthread::operator= ( jthread &&  t)
inlinenoexcept

Definition at line 58 of file jthread.hpp.

◆ set_name()

void jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::jthread::set_name ( char const *  name)
inlinenoexcept

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