OnixS C++ Euronext Optiq MDG Handler 1.3.3
API documentation
Loading...
Searching...
No Matches
ThreadAffinity Class Reference

Public Member Functions

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

Detailed Description

Definition at line 86 of file Defines.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 ( CpuIndexes & ) const

Copies set into another set.

◆ 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()

std::string toString ( ) const

Returns the string representation.