LLVM
17.0.0git
|
LLVM thread following std::thread interface with added constructor to specify stack size. More...
#include "llvm/Support/thread.h"
Public Types | |
using | native_handle_type = pthread_t |
using | id = pthread_t |
using | start_routine_type = void *(*)(void *) |
Public Member Functions | |
thread () | |
thread (thread &&Other) noexcept | |
template<class Function , class... Args> | |
thread (Function &&f, Args &&...args) | |
template<class Function , class... Args> | |
thread (std::optional< unsigned > StackSizeInBytes, Function &&f, Args &&...args) | |
thread (const thread &)=delete | |
~thread () | |
thread & | operator= (thread &&Other) noexcept |
bool | joinable () const noexcept |
id | get_id () const noexcept |
native_handle_type | native_handle () const noexcept |
void | join () |
void | detach () |
void | swap (llvm::thread &Other) noexcept |
Static Public Member Functions | |
template<typename CalleeTuple > | |
static void * | ThreadProxy (void *Ptr) |
static unsigned | hardware_concurrency () |
Static Public Attributes | |
static const std::optional< unsigned > | DefaultStackSize |
LLVM thread following std::thread interface with added constructor to specify stack size.
using llvm::thread::id = pthread_t |
using llvm::thread::native_handle_type = pthread_t |
using llvm::thread::start_routine_type = void *(*)(void *) |
|
inlinenoexcept |
|
inlineexplicit |
|
explicit |
|
inline |
Definition at line 85 of file thread.h.
References joinable().
|
inline |
Definition at line 146 of file thread.h.
References llvm::llvm_thread_detach_impl().
|
inlinenoexcept |
Definition at line 137 of file thread.h.
References llvm::llvm_thread_get_id_impl().
|
inlinestatic |
Definition at line 103 of file thread.h.
References llvm::hardware_concurrency().
|
inline |
Definition at line 141 of file thread.h.
References llvm::llvm_thread_join_impl().
|
inlinenoexcept |
Definition at line 97 of file thread.h.
Referenced by operator=(), and ~thread().
|
inlinenoexcept |
Definition at line 90 of file thread.h.
References joinable(), and Other.
|
inlinenoexcept |
Definition at line 110 of file thread.h.
References Other, and std::swap().
|
inlinestatic |
|
static |