mn_workqueue.hpp
Go to the documentation of this file.
Definition: mn_mutex.hpp:37
Definition: mn_workqueue.hpp:40
uint8_t get_num_items_error()
Definition: mn_workqueue.cpp:126
virtual int queue(work_queue_item_t *work, unsigned int timeout=MN_THREAD_CONFIG_TIMEOUT_QUEUE_DEFAULT)
Definition: mn_workqueue.cpp:91
virtual work_queue_item * get_next_item(unsigned int timeout)
Definition: mn_workqueue.cpp:102
basic_work_queue(basic_task::priority uiPriority, uint16_t usStackDepth, uint8_t uiMaxWorkItems)
Definition: mn_workqueue.cpp:35
basic_task::priority m_uiPriority
Definition: mn_workqueue.hpp:149
virtual int create(int iCore=MN_THREAD_CONFIG_DEFAULT_WORKQUEUE_CORE)
Definition: mn_workqueue.cpp:61
uint8_t m_uiMaxWorkItems
Definition: mn_workqueue.hpp:151
uint8_t get_num_items_worked()
Definition: mn_workqueue.cpp:117
virtual int create_engine(int iCore)=0
virtual ~basic_work_queue()
Definition: mn_workqueue.cpp:54
virtual void destroy_engine()=0
volatile uint8_t m_uiErrorsNumWorks
Definition: mn_workqueue.hpp:160
volatile uint8_t m_uiNumWorks
Definition: mn_workqueue.hpp:156
queue_t * m_pWorkItemQueue
Definition: mn_workqueue.hpp:137
Definition: mn_workqueue_item.hpp:30
Definition: mn_workqueue_task.hpp:33
#define MN_THREAD_CONFIG_TIMEOUT_QUEUE_DEFAULT
Definition: mn_config.hpp:387
#define MN_THREAD_CONFIG_DEFAULT_WORKQUEUE_CORE
Pre defined on which core must run the work queue task, can override in the create function.
Definition: mn_config.hpp:103
basic_queue< T, TMAXITEMS, TITEMSIZE > queue
Definition: container/mn_queue.hpp:239
Definition: mn_allocator_typetraits.hpp:25