dius 0.1.0
Loading...
Searching...
No Matches
dius::PlatformThread Struct Reference

#include <platform/posix/dius/platform_thread.h>

Inheritance diagram for dius::PlatformThread:

Public Member Functions

auto id () const -> pthread_t
 
auto join () -> di::Result< void >
 
 PlatformThread ()=default
 
auto id () const -> int
 
auto join () -> di::Result< void >
 
auto thread_local_storage (usize tls_size) -> di::Span< byte >
 

Static Public Member Functions

static auto create (runtime::TlsInfo) -> di::Result< di::Box< PlatformThread, PlatformThreadDeleter > >
 
static auto current () -> PlatformThread &
 

Public Attributes

pthread_t native_handle {}
 
di::Function< void()> entry
 
int thread_id { 0 }
 
MemoryRegion stack
 

Constructor & Destructor Documentation

◆ PlatformThread()

dius::PlatformThread::PlatformThread ( )
default

Member Function Documentation

◆ create()

static auto dius::PlatformThread::create ( runtime::TlsInfo ) -> di::Result< di::Box< PlatformThread, PlatformThreadDeleter > >
static

◆ current()

static auto dius::PlatformThread::current ( ) -> PlatformThread &
static

◆ id() [1/2]

auto dius::PlatformThread::id ( ) const -> int
inline

◆ id() [2/2]

auto dius::PlatformThread::id ( ) const -> pthread_t
inline

◆ join() [1/2]

auto dius::PlatformThread::join ( ) -> di::Result< void >

◆ join() [2/2]

auto dius::PlatformThread::join ( ) -> di::Result< void >

◆ thread_local_storage()

auto dius::PlatformThread::thread_local_storage ( usize tls_size) -> di::Span<byte>
inline

Member Data Documentation

◆ entry

di::Function< void()> dius::PlatformThread::entry

◆ native_handle

pthread_t dius::PlatformThread::native_handle {}

◆ stack

MemoryRegion dius::PlatformThread::stack

◆ thread_id

int dius::PlatformThread::thread_id { 0 }

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