GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::Thread Class Reference

#include <GREM/core/system/Thread.hpp>

Public Types

using native_handle_type = detail::InvalidNativeThreadHandle

Public Member Functions

 Thread () noexcept=default
 ~Thread ()=default
template<typename F, typename... Args>
requires (!std::is_same_v<std::remove_cvref_t<F>, Thread>)
GREM_ALWAYS_INLINE Thread (F &&f, Args &&... args)
 Thread (Thread &&) noexcept=default
 Thread (const Thread &)=delete
Thread & operator= (Thread &&) noexcept=default
Thread & operator= (const Thread &)=delete
GREM_ALWAYS_INLINE bool joinable () const noexcept
GREM_ALWAYS_INLINE ThreadID get_id () const noexcept
GREM_ALWAYS_INLINE native_handle_type native_handle ()
GREM_ALWAYS_INLINE void join ()
GREM_ALWAYS_INLINE void detach ()
GREM_ALWAYS_INLINE void swap (Thread &other) noexcept

Static Public Member Functions

static GREM_ALWAYS_INLINE unsigned int hardware_concurrency () noexcept

Friends

GREM_ALWAYS_INLINE friend void swap (Thread &a, Thread &b) noexcept

Member Typedef Documentation

◆ native_handle_type

using grem::Thread::native_handle_type = detail::InvalidNativeThreadHandle

Constructor & Destructor Documentation

◆ Thread() [1/4]

grem::Thread::Thread ( )
defaultnoexcept

◆ ~Thread()

grem::Thread::~Thread ( )
default

◆ Thread() [2/4]

template<typename F, typename... Args>
requires (!std::is_same_v<std::remove_cvref_t<F>, Thread>)
GREM_ALWAYS_INLINE grem::Thread::Thread ( F && f,
Args &&... args )
inline

◆ Thread() [3/4]

grem::Thread::Thread ( Thread && )
defaultnoexcept

◆ Thread() [4/4]

grem::Thread::Thread ( const Thread & )
delete

Member Function Documentation

◆ hardware_concurrency()

GREM_ALWAYS_INLINE unsigned int grem::Thread::hardware_concurrency ( )
inlinestaticnodiscardnoexcept

◆ operator=() [1/2]

Thread & grem::Thread::operator= ( Thread && )
defaultnoexcept

◆ operator=() [2/2]

Thread & grem::Thread::operator= ( const Thread & )
delete

◆ joinable()

GREM_ALWAYS_INLINE bool grem::Thread::joinable ( ) const
inlinenodiscardnoexcept

◆ get_id()

GREM_ALWAYS_INLINE ThreadID grem::Thread::get_id ( ) const
inlinenodiscardnoexcept

◆ native_handle()

GREM_ALWAYS_INLINE native_handle_type grem::Thread::native_handle ( )
inlinenodiscard

◆ join()

GREM_ALWAYS_INLINE void grem::Thread::join ( )
inline

◆ detach()

GREM_ALWAYS_INLINE void grem::Thread::detach ( )
inline

◆ swap()

GREM_ALWAYS_INLINE void grem::Thread::swap ( Thread & other)
inlinenoexcept

◆ swap

GREM_ALWAYS_INLINE friend void swap ( Thread & a,
Thread & b )
friend

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