Counting semaphore attributes. More...
#include <cmsis-plus/rtos/os.h>
Inherits os::rtos::semaphore::attributes.
Public Member Functions | |
Constructors & Destructor | |
constexpr | attributes_counting (count_t max_value, count_t initial_value) |
Construct a counting semaphore attributes object instance. More... | |
attributes_counting (const attributes_counting &)=default | |
attributes_counting (attributes_counting &&)=default | |
attributes_counting & | operator= (const attributes_counting &)=default |
attributes_counting & | operator= (attributes_counting &&)=default |
~attributes_counting ()=default | |
Destruct the semaphore attributes object instance. More... | |
Public Attributes | |
Public Member Variables | |
count_t | sm_max_value = 1 |
Semaphore max count value. More... | |
count_t | sm_initial_value = 0 |
Semaphore initial count value. More... | |
Public Member Variables | |
rtos::clock * | clock = nullptr |
Attribute with the address of the clock to be used for timeouts. More... | |
Counting semaphore attributes.
Definition at line 211 of file os-semaphore.h.
constexpr os::rtos::semaphore::attributes_counting::attributes_counting | ( | count_t | max_value, |
count_t | initial_value | ||
) |
Construct a counting semaphore attributes object instance.
[in] | max_value | Maximum count value. |
[in] | initial_value | Initial count value. |
Definition at line 699 of file os-semaphore.h.
|
default |
|
default |
|
default |
Destruct the semaphore attributes object instance.
|
default |
|
default |
|
inherited |
Attribute with the address of the clock to be used for timeouts.
It may be one of os::rtos::sysclock
, os::rtos::rtclock
, or any other user object derived from class os::rtos::clock
.
If nullptr
, the default clock is os::rtos::sysclock
.
Definition at line 615 of file os-decls.h.
|
inherited |
Semaphore initial count value.
This values represents the number of resources initially available to the semaphore.
Definition at line 147 of file os-semaphore.h.
|
inherited |
Semaphore max count value.
This values represents the maximum number of resources available to the semaphore.
Definition at line 142 of file os-semaphore.h.