mammut::task::ProcessHandler Class Referenceabstract
Inheritance diagram for mammut::task::ProcessHandler:
mammut::task::Task

Public Member Functions

virtual std::vector< TaskId > getActiveThreadsIdentifiers () const =0
 
virtual ThreadHandlergetThreadHandler (TaskId tid) const =0
 
virtual void releaseThreadHandler (ThreadHandler *thread) const =0
 
- Public Member Functions inherited from mammut::task::Task
virtual bool getCoreUsage (double &coreUsage) const =0
 
virtual bool resetCoreUsage ()=0
 
virtual bool getPriority (uint &priority) const =0
 
virtual bool setPriority (uint priority) const =0
 
virtual bool getVirtualCoreId (topology::VirtualCoreId &virtualCoreId) const =0
 
virtual bool move (const topology::Cpu *cpu) const =0
 
virtual bool move (const topology::PhysicalCore *physicalCore) const =0
 
virtual bool move (const topology::VirtualCore *virtualCore) const =0
 
virtual bool move (topology::VirtualCoreId virtualCoreId) const =0
 
virtual bool move (const std::vector< const topology::VirtualCore * > virtualCores) const =0
 
virtual bool move (const std::vector< topology::VirtualCoreId > virtualCoresIds) const =0
 

Member Function Documentation

virtual std::vector<TaskId> mammut::task::ProcessHandler::getActiveThreadsIdentifiers ( ) const
pure virtual

Returns a list of active thread identifiers on this process.

Returns
A vector of active thread identifiers on this process.
virtual ThreadHandler* mammut::task::ProcessHandler::getThreadHandler ( TaskId  tid) const
pure virtual

Returns the handler associated to a specific thread.

Parameters
tidThe thread identifier.
Returns
The handler associated to a specific thread or NULL if the thread doesn't exists. The obtained handler must be released with releaseThreadHandler call.
virtual void mammut::task::ProcessHandler::releaseThreadHandler ( ThreadHandler thread) const
pure virtual

Releases the handler obtained through getThreadHandler call.

Parameters
threadThe thread handler.

The documentation for this class was generated from the following file:
  • /home/daniele/Code/Mammut/mammut/task/task.hpp