embkernel
 All Classes Functions Variables Typedefs Groups Pages
RtosList.hpp
1 //------------------------------------------------------------------------------
2 //This file is part of embKernel.
3 //See license.txt for the full license governing this code.
4 //------------------------------------------------------------------------------
8 #ifndef RTOS_LIST_HPP_
9 #define RTOS_LIST_HPP_
10 
11 #include <stdint.h>
12 
13 class RtosListIterable;
14 
20 class RtosList {
21  friend class Rtos;
22  friend class RtosTask;
23 public:
24  RtosList();
25 
26  void insertAtBeginning(RtosListIterable& iterable);
27  void insertAtEnd(RtosListIterable& iterable);
28  void insertSorted(RtosListIterable& iterable);
29  void insertSorted(RtosListIterable& iterable, uint32_t current);
30  void remove(RtosListIterable& iterable);
31  bool isInside(RtosListIterable& iterable);
33 
34 protected:
35  RtosListIterable *mFirst;
36  RtosListIterable *mLast;
37 };
38 
39 #endif /* RTOS_LIST_HPP_ */
40