RTEMS 6.1-rc1
Functions
semaphore.c File Reference

This source file contains the implementation of _Semaphore_Wait(), _Semaphore_Wait_timed_ticks(), _Semaphore_Try_wait(), _Semaphore_Post(), and _Semaphore_Post_binary(). More...

#include <rtems/score/semaphoreimpl.h>
#include <rtems/score/statesimpl.h>
#include <rtems/score/threadimpl.h>
#include <errno.h>

Functions

 RTEMS_STATIC_ASSERT (offsetof(Sem_Control, Queue)==offsetof(struct _Semaphore_Control, _Queue), SEMAPHORE_CONTROL_QUEUE)
 
 RTEMS_STATIC_ASSERT (offsetof(Sem_Control, count)==offsetof(struct _Semaphore_Control, _count), SEMAPHORE_CONTROL_COUNT)
 
 RTEMS_STATIC_ASSERT (sizeof(Sem_Control)==sizeof(struct _Semaphore_Control), SEMAPHORE_CONTROL_SIZE)
 
void _Semaphore_Wait (struct _Semaphore_Control *_sem)
 
int _Semaphore_Wait_timed_ticks (struct _Semaphore_Control *_sem, uint32_t ticks)
 
int _Semaphore_Try_wait (struct _Semaphore_Control *_sem)
 
void _Semaphore_Post (struct _Semaphore_Control *_sem)
 
void _Semaphore_Post_binary (struct _Semaphore_Control *_sem)
 

Detailed Description

This source file contains the implementation of _Semaphore_Wait(), _Semaphore_Wait_timed_ticks(), _Semaphore_Try_wait(), _Semaphore_Post(), and _Semaphore_Post_binary().