|
ICARUS OS (Intelligent Cooperative Architecture for Real-time Unified Systems) 0.1.0
Preemptive Real-Time Operating System for ARM Cortex-M7
|
Counting Semaphore. More...
#include <types.h>
Data Fields | |
| bool | engaged |
| true if semaphore is initialized and active | |
| uint32_t | count |
| Current semaphore count. | |
| uint32_t | max_count |
| Maximum count (initial value) | |
| uint32_t | tick_updated_at |
| Last modification timestamp (for debugging) | |
Counting Semaphore.
Implements a counting semaphore for resource management and task synchronization. Supports both binary (max_count=1) and counting (max_count>1) semaphore semantics.
| uint32_t icarus_semaphore_t::count |
Current semaphore count.
Definition at line 153 of file types.h.
Referenced by __init_sem(), __sem_can_consume(), __sem_can_feed(), __sem_decrement(), __sem_increment(), __semaphore_get_count(), and __semaphore_init().
| bool icarus_semaphore_t::engaged |
true if semaphore is initialized and active
Definition at line 152 of file types.h.
Referenced by __init_sem(), and __semaphore_init().
| uint32_t icarus_semaphore_t::max_count |
Maximum count (initial value)
Definition at line 154 of file types.h.
Referenced by __init_sem(), __sem_can_feed(), __semaphore_get_max_count(), and __semaphore_init().
| uint32_t icarus_semaphore_t::tick_updated_at |
Last modification timestamp (for debugging)
Definition at line 155 of file types.h.
Referenced by __init_sem(), __sem_decrement(), __sem_increment(), and __semaphore_init().