| Summary |
#include <rtl.h>
OS_RESULT os_sem_send (
OS_ID semaphore ); /* The semaphore whose token count is incremented */
|
| Description | The os_sem_send function increments the number of tokens in the semaphore object identified by the function argument. The os_sem_send function is in the RL-RTX library. The prototype is defined in rtl.h. Note - You must initialize the semaphore object using the os_sem_init function before you can perform any operation on the semaphore.
|
| Return Value | The os_sem_send function always returns OS_R_OK. |
| See Also | isr_sem_send, os_sem_init, os_sem_wait |
| Example |
#include <rtl.h>
OS_SEM semaphore1;
__task void task1 (void) {
..
os_sem_init (semaphore1, 0);
os_sem_send (semaphore1);
..
}
|