CellModules
mingw_stdthread::thread Class Reference

#include <mingw.thread.h>

Classes

class  id
 

Public Types

typedef HANDLE native_handle_type
 

Public Member Functions

id get_id () const noexcept
 
native_handle_type native_handle () const
 
 thread ()
 
 thread (thread &&other)
 
 thread (const thread &other)=delete
 
template<class Func , typename... Args>
 thread (Func &&func, Args &&... args)
 
bool joinable () const
 
void join ()
 
 ~thread ()
 
threadoperator= (const thread &)=delete
 
threadoperator= (thread &&other) noexcept
 
void swap (thread &&other) noexcept
 
void detach ()
 

Static Public Member Functions

template<class Call , typename... Args>
static unsigned __stdcall threadfunc (void *arg)
 
static unsigned int _hardware_concurrency_helper () noexcept
 
static unsigned int hardware_concurrency () noexcept
 

Protected Attributes

HANDLE mHandle
 
id mThreadId
 

Detailed Description

Definition at line 157 of file mingw.thread.h.

Member Typedef Documentation

◆ native_handle_type

Definition at line 193 of file mingw.thread.h.

Constructor & Destructor Documentation

◆ thread() [1/4]

mingw_stdthread::thread::thread ( )
inline

Definition at line 196 of file mingw.thread.h.

◆ thread() [2/4]

mingw_stdthread::thread::thread ( thread &&  other)
inline

Definition at line 198 of file mingw.thread.h.

◆ thread() [3/4]

mingw_stdthread::thread::thread ( const thread other)
delete

◆ thread() [4/4]

template<class Func , typename... Args>
mingw_stdthread::thread::thread ( Func &&  func,
Args &&...  args 
)
inlineexplicit

Definition at line 208 of file mingw.thread.h.

◆ ~thread()

mingw_stdthread::thread::~thread ( )
inline

Definition at line 244 of file mingw.thread.h.

Member Function Documentation

◆ _hardware_concurrency_helper()

static unsigned int mingw_stdthread::thread::_hardware_concurrency_helper ( )
inlinestaticnoexcept

Definition at line 263 of file mingw.thread.h.

◆ detach()

void mingw_stdthread::thread::detach ( )
inline

Definition at line 276 of file mingw.thread.h.

◆ get_id()

id mingw_stdthread::thread::get_id ( ) const
inlinenoexcept

Definition at line 194 of file mingw.thread.h.

◆ hardware_concurrency()

static unsigned int mingw_stdthread::thread::hardware_concurrency ( )
inlinestaticnoexcept

Definition at line 270 of file mingw.thread.h.

◆ join()

void mingw_stdthread::thread::join ( )
inline

Definition at line 230 of file mingw.thread.h.

◆ joinable()

bool mingw_stdthread::thread::joinable ( ) const
inline

Definition at line 229 of file mingw.thread.h.

◆ native_handle()

native_handle_type mingw_stdthread::thread::native_handle ( void  ) const
inline

Definition at line 195 of file mingw.thread.h.

◆ operator=() [1/2]

thread & mingw_stdthread::thread::operator= ( const thread )
delete

◆ operator=() [2/2]

thread & mingw_stdthread::thread::operator= ( thread &&  other)
inlinenoexcept

Definition at line 250 of file mingw.thread.h.

◆ swap()

void mingw_stdthread::thread::swap ( thread &&  other)
inlinenoexcept

Definition at line 257 of file mingw.thread.h.

◆ threadfunc()

template<class Call , typename... Args>
static unsigned __stdcall mingw_stdthread::thread::threadfunc ( void *  arg)
inlinestatic

Definition at line 223 of file mingw.thread.h.

Member Data Documentation

◆ mHandle

HANDLE mingw_stdthread::thread::mHandle
protected

Definition at line 190 of file mingw.thread.h.

◆ mThreadId

id mingw_stdthread::thread::mThreadId
protected

Definition at line 191 of file mingw.thread.h.


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