mn_workqueue_single.hpp
Go to the documentation of this file.
1 /*
2 *This file is part of the Mini Thread Library (https://github.com/RoseLeBlood/MiniThread ).
3 *Copyright (c) 2020 Amber-Sophia Schroeck
4 *
5 *The Mini Thread Library is free software; you can redistribute it and/or modify
6 *it under the terms of the GNU Lesser General Public License as published by
7 *the Free Software Foundation, version 3, or (at your option) any later version.
8 
9 *The Mini Thread Library is distributed in the hope that it will be useful, but
10 *WITHOUT ANY WARRANTY; without even the implied warranty of
11 *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 *General Public License for more details.
13 *
14 *You should have received a copy of the GNU Lesser General Public
15 *License along with the Mini Thread Library; if not, see
16 *<https://www.gnu.org/licenses/>.
17 */
18 #ifndef MINLIB_ESP32_WORK_QUEUE_SINGLE_
19 #define MINLIB_ESP32_WORK_QUEUE_SINGLE_
20 
21 #include "mn_workqueue.hpp"
22 
23 namespace mn {
24  namespace queue {
31  public:
40  uint16_t usStackDepth = MN_THREAD_CONFIG_WORKQUEUE_SINGLE_STACKSIZE,
41  uint8_t uiMaxWorkItems = MN_THREAD_CONFIG_WORKQUEUE_SINGLE_MAXITEMS);
42 
47  protected:
56  int create_engine(int iCore);
57 
61  void destroy_engine();
62  private:
67  };
68 
70  }
71 }
72 #endif
priority
Task priority.
Definition: mn_task.hpp:93
Definition: mn_workqueue_single.hpp:30
void destroy_engine()
Definition: mn_workqueue_single.cpp:52
work_queue_task * m_pWorker
Definition: mn_workqueue_single.hpp:66
int create_engine(int iCore)
Definition: mn_workqueue_single.cpp:37
basic_work_queue_single(basic_task::priority uiPriority=MN_THREAD_CONFIG_WORKQUEUE_SINGLE_PRIORITY, uint16_t usStackDepth=MN_THREAD_CONFIG_WORKQUEUE_SINGLE_STACKSIZE, uint8_t uiMaxWorkItems=MN_THREAD_CONFIG_WORKQUEUE_SINGLE_MAXITEMS)
Definition: mn_workqueue_single.cpp:26
Definition: mn_workqueue.hpp:40
Definition: mn_workqueue_task.hpp:33
#define MN_THREAD_CONFIG_WORKQUEUE_SINGLE_PRIORITY
Definition: mn_config.hpp:296
#define MN_THREAD_CONFIG_WORKQUEUE_SINGLE_STACKSIZE
Definition: mn_config.hpp:288
#define MN_THREAD_CONFIG_WORKQUEUE_SINGLE_MAXITEMS
Definition: mn_config.hpp:280
basic_queue< T, TMAXITEMS, TITEMSIZE > queue
Definition: container/mn_queue.hpp:239
Definition: mn_allocator_typetraits.hpp:25