embkernel
Main Page
Modules
Classes
Files
File List
All
Classes
Functions
Variables
Typedefs
Groups
Pages
RTOS
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
18
class
RtosSemaphore
:
public
RtosSyncObject
{
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
Generated on Sun May 12 2013 23:28:51 for embkernel by
1.8.3.1