#include <dius/iros/thread.h>
Public Member Functions | |
| PlatformThread ()=default | |
| auto | id () const -> int |
| auto | join () -> di::Result< void > |
| auto | thread_local_storage (usize tls_size) -> di::Span< byte > |
| auto | id () const -> pthread_t |
| auto | join () -> di::Result< void > |
Public Member Functions inherited from di::util::SelfPointer< T > | |
| constexpr | SelfPointer () |
| constexpr | SelfPointer (SelfPointer const &) |
| constexpr | SelfPointer (SelfPointer &&) |
| constexpr auto | operator= (SelfPointer const &) -> SelfPointer & |
| constexpr auto | operator= (SelfPointer &&) -> SelfPointer & |
Public Member Functions inherited from di::util::Immovable | |
| Immovable ()=default | |
| Immovable (Immovable &&)=delete | |
Static Public Member Functions | |
| static auto | create (runtime::TlsInfo) -> di::Result< di::Box< PlatformThread, PlatformThreadDeleter > > |
| static auto | current () -> PlatformThread & |
Public Attributes | |
| int | thread_id { 0 } |
| di::Atomic< int > | join_word { 0 } |
| byte * | stack { nullptr } |
| di::Function< void()> | entry |
| pthread_t | native_handle {} |
Public Attributes inherited from di::util::SelfPointer< T > | |
| T * | self { nullptr } |
|
default |
|
static |
|
static |
|
inline |
|
inline |
| auto dius::PlatformThread::join | ( | ) | -> di::Result<void> |
| auto dius::PlatformThread::join | ( | ) | -> di::Result< void > |
| di::Function< void()> dius::PlatformThread::entry |
| di::Atomic<int> dius::PlatformThread::join_word { 0 } |
| pthread_t dius::PlatformThread::native_handle {} |
| byte* dius::PlatformThread::stack { nullptr } |
| int dius::PlatformThread::thread_id { 0 } |