embkernel
 All Classes Functions Variables Typedefs Groups Pages
RtosSemaphore.hpp
1 //------------------------------------------------------------------------------
2 //This file is part of embKernel.
3 //See license.txt for the full license governing this code.
4 //------------------------------------------------------------------------------
8 #ifndef RTOS_SEMAPHORE_HPP_
9 #define RTOS_SEMAPHORE_HPP_
10 
11 #include "RtosSyncObject.hpp"
12 
19 public:
20  RtosSemaphore(int maxCount, int initialCount);
21  ~RtosSemaphore();
22 
23  bool give(Rtos::TICK tick);
24  bool giveFromInt();
25  bool take(Rtos::TICK tick);
26  bool takeFromInt();
27 };
28 
29 #endif /* RTOS_SEMAPHORE_HPP_ */
30