|
RocketLogger
1.0
|
#include "sem.h"
Include dependency graph for sem.c:Go to the source code of this file.
Functions | |
| int | create_sem (void) |
| int | remove_sem (int sem_id) |
| int | open_sem (void) |
| int | wait_sem (int sem_id, int sem_num, int time_out) |
| int | set_sem (int sem_id, int sem_num, int val) |
| int create_sem | ( | void | ) |
| int open_sem | ( | void | ) |
| int remove_sem | ( | int | sem_id | ) |
| int set_sem | ( | int | sem_id, |
| int | sem_num, | ||
| int | val | ||
| ) |
Set value to semaphore
| sem_id | ID of semaphore set |
| sem_num | Number of semaphore in set |
| val | Value to be set to semaphore |
Definition at line 85 of file sem.c.
References ERROR, FAILURE, NO_FLAG, rl_log(), SEM_SET_TIME_OUT, SUCCESS, and TIME_OUT.
Referenced by handle_data_buffer(), main(), print_data(), and pru_sample().
Here is the call graph for this function:| int wait_sem | ( | int | sem_id, |
| int | sem_num, | ||
| int | time_out | ||
| ) |
Wait on a semaphore until access granted
| sem_id | ID of semaphore set |
| sem_num | Number of semaphore in set |
| time_out | Maximum waiting time |
Definition at line 52 of file sem.c.
References ERROR, FAILURE, INFO, NO_FLAG, rl_log(), SUCCESS, TIME_OUT, and WARNING.
Referenced by handle_data_buffer(), main(), and print_data().
Here is the call graph for this function: