#include <mn_task_list.hpp>
A simple task list
- Note
- If MN_THREAD_CONFIG_ADD_TASK_TO_TASK_LIST activated then automatic added new basic_tasks to this list. On default is MN_THREAD_CONFIG_ADD_TASK_TO_TASK_LIST deactivated
◆ basic_task_list()
mn::basic_task_list::basic_task_list |
( |
| ) |
|
|
private |
◆ add_task()
void mn::basic_task_list::add_task |
( |
basic_task * |
task | ) |
|
Add a task to list
- Parameters
-
◆ get_task() [1/4]
basic_task * mn::basic_task_list::get_task |
( |
int |
core, |
|
|
int |
id |
|
) |
| |
|
private |
Get a task from the list by id on a specific core
- Parameters
-
id | The id to search |
core | The core |
- Returns
- The finded task, by id. NULL when not finded a task
◆ get_task() [2/4]
basic_task * mn::basic_task_list::get_task |
( |
int |
core, |
|
|
std::string |
name |
|
) |
| |
|
private |
Get a task from the list by name on a specific core
- Parameters
-
name | The name to search |
core | The core |
- Returns
- The finded task, by name. NULL when not finded a task
◆ get_task() [3/4]
basic_task * mn::basic_task_list::get_task |
( |
int |
id | ) |
|
Get a task from the list by id
- Parameters
-
- Returns
- The finded task, by id. NULL when not finded a task
◆ get_task() [4/4]
basic_task * mn::basic_task_list::get_task |
( |
std::string |
name | ) |
|
Get a task from the list by name
- Parameters
-
- Returns
- The finded task, by name. NULL when not finded a task
◆ instance()
Get the singleton instance
- Returns
- The singleton instance
◆ remove_task()
void mn::basic_task_list::remove_task |
( |
basic_task * |
task | ) |
|
Remove a task from the list
- Parameters
-
◆ m_mapTaskOnCore
std::map<int, std::list<basic_task*> > mn::basic_task_list::m_mapTaskOnCore |
|
private |
The map for this Task list holder
◆ m_pInstance
The static object of this class
◆ m_pLock
◆ m_staticInstanceMux
mutex_t mn::basic_task_list::m_staticInstanceMux |
|
staticprivate |
The static instance mutex
The documentation for this class was generated from the following files: