mn_workqueue_task.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 
19 #ifndef MINLIB_ESP32_WORK_QUEUE_THREAD_
20 #define MINLIB_ESP32_WORK_QUEUE_THREAD_
21 
22 #include "../mn_task.hpp"
23 
24 namespace mn {
25  namespace queue {
26  class basic_work_queue;
27 
33  class work_queue_task : public basic_task {
34  public:
43  work_queue_task(char const* strName, basic_task::priority uiPriority,
44  unsigned short usStackDepth,
45  basic_work_queue* parent);
46 
47  virtual ~work_queue_task();
48 
49  protected:
54  virtual int on_task() override;
55  private:
60  };
61  }
62 }
63 
64 #endif
Wrapper class around FreeRTOS's implementation of a task.
Definition: mn_task.hpp:88
priority
Task priority.
Definition: mn_task.hpp:93
Definition: mn_workqueue.hpp:40
Definition: mn_workqueue_task.hpp:33
work_queue_task(char const *strName, basic_task::priority uiPriority, unsigned short usStackDepth, basic_work_queue *parent)
Definition: mn_workqueue_task.cpp:30
virtual int on_task() override
Definition: mn_workqueue_task.cpp:46
virtual ~work_queue_task()
Definition: mn_workqueue_task.cpp:41
basic_work_queue * m_parentWorkQueue
Definition: mn_workqueue_task.hpp:59
basic_queue< T, TMAXITEMS, TITEMSIZE > queue
Definition: container/mn_queue.hpp:239
Definition: mn_allocator_typetraits.hpp:25