StormByte 3.0.0
C++26 foundation of the StormByte suite
Loading...
Searching...
No Matches
StormByte::Safe::Thread::Id Class Reference

Identifier of an execution. More...

#include <StormByte/safe/thread.hxx>

Public Member Functions

 Id () noexcept
 Not an execution.
bool operator== (const Id &other) const noexcept
 Compare two identifiers.
bool operator!= (const Id &other) const noexcept
 Compare two identifiers.
bool operator< (const Id &other) const noexcept
 Order two identifiers.
bool operator<= (const Id &other) const noexcept
 Order two identifiers.
bool operator> (const Id &other) const noexcept
 Order two identifiers.
bool operator>= (const Id &other) const noexcept
 Order two identifiers.
std::uint64_t Value () const noexcept
 Value used by a hash.

Friends

class Thread

Detailed Description

Identifier of an execution.

Zero is not an execution.

Constructor & Destructor Documentation

◆ Id()

StormByte::Safe::Thread::Id::Id ( )
inlinenoexcept

Not an execution.

Member Function Documentation

◆ operator!=()

bool StormByte::Safe::Thread::Id::operator!= ( const Id & other) const
inlinenoexcept

Compare two identifiers.

Parameters
otherOther identifier.
Returns
Whether they name different executions.

◆ operator<()

bool StormByte::Safe::Thread::Id::operator< ( const Id & other) const
inlinenoexcept

Order two identifiers.

Parameters
otherOther identifier.
Returns
Whether this identifier is less.

◆ operator<=()

bool StormByte::Safe::Thread::Id::operator<= ( const Id & other) const
inlinenoexcept

Order two identifiers.

Parameters
otherOther identifier.
Returns
Whether this identifier is less or equal.

◆ operator==()

bool StormByte::Safe::Thread::Id::operator== ( const Id & other) const
inlinenoexcept

Compare two identifiers.

Parameters
otherOther identifier.
Returns
Whether they name the same execution.

◆ operator>()

bool StormByte::Safe::Thread::Id::operator> ( const Id & other) const
inlinenoexcept

Order two identifiers.

Parameters
otherOther identifier.
Returns
Whether this identifier is greater.

◆ operator>=()

bool StormByte::Safe::Thread::Id::operator>= ( const Id & other) const
inlinenoexcept

Order two identifiers.

Parameters
otherOther identifier.
Returns
Whether this identifier is greater or equal.

◆ Value()

std::uint64_t StormByte::Safe::Thread::Id::Value ( ) const
inlinenoexcept

Value used by a hash.

Returns
Raw identifier. Zero is not an execution.

◆ Thread

friend class Thread
friend

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