mammut::task::TasksManager Class Referenceabstract
Inheritance diagram for mammut::task::TasksManager:

Public Member Functions

virtual std::vector< TaskId > getActiveProcessesIdentifiers () const =0
 
virtual ProcessHandlergetProcessHandler (TaskId pid) const =0
 
virtual void releaseProcessHandler (ProcessHandler *process) const =0
 
virtual ThreadHandlergetThreadHandler (TaskId pid, TaskId tid) const =0
 
virtual ThreadHandlergetThreadHandler () const =0
 
virtual void releaseThreadHandler (ThreadHandler *thread) const =0
 

Member Function Documentation

virtual std::vector<TaskId> mammut::task::TasksManager::getActiveProcessesIdentifiers ( ) const
pure virtual

Returns a list of active processes identifiers.

Returns
A vector of active processes identifiers.
virtual ProcessHandler* mammut::task::TasksManager::getProcessHandler ( TaskId  pid) const
pure virtual

Returns the handler associated to a specific process.

Parameters
pidThe process identifier.
Returns
The handler associated to a specific process or NULL if the process doesn't exists. The obtained handler must be released with releaseProcessHandler call.
virtual ThreadHandler* mammut::task::TasksManager::getThreadHandler ( TaskId  pid,
TaskId  tid 
) const
pure virtual

Returns the handler associated to a specific thread.

Parameters
pidThe process identifier.
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 ThreadHandler* mammut::task::TasksManager::getThreadHandler ( ) const
pure virtual

Returns the handler associated to the calling thread.

Returns
The handler associated to the calling thread. The obtained handler must be released with releaseThreadHandler call.
virtual void mammut::task::TasksManager::releaseProcessHandler ( ProcessHandler process) const
pure virtual

Releases the handler obtained through getProcessHandler call.

Parameters
processThe process handler.
virtual void mammut::task::TasksManager::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