OnixS BME SENAF Handler C++ library 2.3.0
API documentation
Loading...
Searching...
No Matches
ThreadAffinity Class Reference

Public Member Functions

 ThreadAffinity ()
 ThreadAffinity (const ThreadAffinity &)
 ~ThreadAffinity ()
bool empty () const
void copyTo (std::set< CpuIndex > &) const
bool insert (CpuIndex index)
bool erase (CpuIndex index)
void clear ()
ThreadAffinityoperator= (const ThreadAffinity &)
std::string toString () const
void toString (std::string &) const

Static Public Member Functions

static ThreadAffinity deserialize (const std::string &)

Detailed Description

Definition at line 35 of file ThreadAffinity.h.

Constructor & Destructor Documentation

◆ ThreadAffinity() [1/2]

Initializes empty set.

◆ ThreadAffinity() [2/2]

Initializes as copy of other set.

◆ ~ThreadAffinity()

Utilizes all the resources.

Member Function Documentation

◆ clear()

void clear ( )

Makes set empty.

◆ copyTo()

void copyTo ( std::set< CpuIndex > & ) const

Copies set into another set.

◆ deserialize()

ThreadAffinity deserialize ( const std::string & )
static

Returns thread affinity of given string presentation.

◆ empty()

bool empty ( ) const

Indicates whether is empty.

◆ erase()

bool erase ( CpuIndex index)

Removes CPU index from the set.

◆ insert()

bool insert ( CpuIndex index)

Adds CPU index into set.

◆ operator=()

ThreadAffinity & operator= ( const ThreadAffinity & )

Re-initializes instance as copy of other set.

◆ toString() [1/2]

std::string toString ( ) const
inline

Returns textual presentation.

Definition at line 79 of file ThreadAffinity.h.

◆ toString() [2/2]

void toString ( std::string & ) const

Serializes indices into text.