OnixS EuroTLX MITCH Handler for C++  1.1.0.1
Public Member Functions | List of all members
ThreadAffinity Class Reference

Represents set of CPU indices. More...

Public Member Functions

 ThreadAffinity ()
 Initializes empty set.
 
 ThreadAffinity (const ThreadAffinity &)
 Initializes as copy of other set.
 
 ~ThreadAffinity ()
 Utilizes all the resources.
 
bool empty () const
 Indicates whether is empty.
 
void copyTo (CpuIndexes &) const
 Copies set into another set.
 
bool insert (CpuIndex index)
 Adds CPU index into set.
 
bool erase (CpuIndex index)
 Removes CPU index from the set.
 
void clear ()
 Makes set empty.
 
ThreadAffinityoperator= (const ThreadAffinity &)
 Re-initializes instance as copy of other set.
 
std::string toString () const
 Returns the string representation.
 

Detailed Description

Represents set of CPU indices.