oa::Thread

Native thread owner. Creation is explicit and fallible; destruction never waits or detaches implicitly. A live thread must be joined or detached by its owning session before this value is destroyed.

Public Methods

oa::Status oa::Thread::detach()
oa::Status oa::Thread::join()
bool oa::Thread::joinable()

Static Public Methods

static oa::Result<Thread> oa::Thread::create(oa::Fn<void ()> inEntry)
static oa::U32 oa::Thread::hardwareConcurrency()
static void oa::Thread::sleepFor(oa::Duration inDuration)
static void oa::Thread::yield()

Constructor & Destructor Documentation

oa::Thread::Thread()
No public source comment is attached to this declaration.
void oa::Thread::~Thread()
No public source comment is attached to this declaration.

Public Method Documentation

oa::Status oa::Thread::detach()
No public source comment is attached to this declaration.

Returns

oa::Status

The declared return value.

oa::Status oa::Thread::join()
No public source comment is attached to this declaration.

Returns

oa::Status

The declared return value.

bool oa::Thread::joinable()
No public source comment is attached to this declaration.

Returns

bool

The declared return value.

static oa::Result<Thread> oa::Thread::create( oa::Fn<void ()> inEntry )
No public source comment is attached to this declaration.

Parameters

inEntry
oa::Fn<void ()>

Returns

oa::Result<Thread>

The declared return value.

static oa::U32 oa::Thread::hardwareConcurrency()
No public source comment is attached to this declaration.

Returns

oa::U32

The declared return value.

static void oa::Thread::sleepFor( oa::Duration inDuration )
No public source comment is attached to this declaration.

Parameters

inDuration
oa::Duration

Returns

void

The declared return value.

static void oa::Thread::yield()
No public source comment is attached to this declaration.

Returns

void

The declared return value.