All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
le_semaphore.h
Go to the documentation of this file.
1 
97 #ifndef LEGATO_SEMAPHORE_INCLUDE_GUARD
98 #define LEGATO_SEMAPHORE_INCLUDE_GUARD
99 
100 //--------------------------------------------------------------------------------------------------
105 //--------------------------------------------------------------------------------------------------
106 typedef struct le_sem_t* le_sem_Ref_t;
107 
108 //--------------------------------------------------------------------------------------------------
114 //--------------------------------------------------------------------------------------------------
116 (
117  const char* name,
118  int32_t initialCount
119 );
120 
121 //--------------------------------------------------------------------------------------------------
127 //--------------------------------------------------------------------------------------------------
129 (
130  const char* name,
131  int32_t initialCount
132 );
133 
134 //--------------------------------------------------------------------------------------------------
139 //--------------------------------------------------------------------------------------------------
140 void le_sem_Delete
141 (
142  le_sem_Ref_t semaphorePtr
143 );
144 
145 //--------------------------------------------------------------------------------------------------
152 //--------------------------------------------------------------------------------------------------
154 (
155  const char* name
156 );
157 
158 //--------------------------------------------------------------------------------------------------
164 //--------------------------------------------------------------------------------------------------
165 void le_sem_Wait
166 (
167  le_sem_Ref_t semaphorePtr
168 );
169 
170 //--------------------------------------------------------------------------------------------------
180 //--------------------------------------------------------------------------------------------------
182 (
183  le_sem_Ref_t semaphorePtr
184 );
185 
186 //--------------------------------------------------------------------------------------------------
196 //--------------------------------------------------------------------------------------------------
198 (
199  le_sem_Ref_t semaphorePtr,
200  le_clk_Time_t timeToWait
201 );
202 
203 //--------------------------------------------------------------------------------------------------
209 //--------------------------------------------------------------------------------------------------
210 void le_sem_Post
211 (
212  le_sem_Ref_t semaphorePtr
213 );
214 
215 //--------------------------------------------------------------------------------------------------
221 //--------------------------------------------------------------------------------------------------
222 int le_sem_GetValue
223 (
224  le_sem_Ref_t semaphorePtr
225 );
226 
227 #endif // LEGATO_SEMAPHORE_INCLUDE_GUARD
le_result_t le_sem_TryWait(le_sem_Ref_t semaphorePtr)
le_result_t
Definition: le_basics.h:34
struct le_sem_t * le_sem_Ref_t
Definition: le_semaphore.h:106
le_sem_Ref_t le_sem_FindSemaphore(const char *name)
le_sem_Ref_t le_sem_CreateTraceable(const char *name, int32_t initialCount)
void le_sem_Post(le_sem_Ref_t semaphorePtr)
Definition: le_clock.h:97
void le_sem_Delete(le_sem_Ref_t semaphorePtr)
void le_sem_Wait(le_sem_Ref_t semaphorePtr)
le_result_t le_sem_WaitWithTimeOut(le_sem_Ref_t semaphorePtr, le_clk_Time_t timeToWait)
le_sem_Ref_t le_sem_Create(const char *name, int32_t initialCount)
int le_sem_GetValue(le_sem_Ref_t semaphorePtr)