µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
os::rtos::semaphore::attributes_counting Class Reference

Counting semaphore attributes. More...

#include <cmsis-plus/rtos/os.h>

+ Inheritance diagram for os::rtos::semaphore::attributes_counting:

Public Member Functions

Constructors & Destructor
constexpr attributes_counting (count_t max_value, count_t initial_value)
 Construct a counting semaphore attributes object instance.
 
 attributes_counting (const attributes_counting &)=default
 
 attributes_counting (attributes_counting &&)=default
 
attributes_countingoperator= (const attributes_counting &)=default
 
attributes_countingoperator= (attributes_counting &&)=default
 
 ~attributes_counting ()=default
 Destruct the semaphore attributes object instance.
 

Public Attributes

Public Member Variables
count_t sm_max_value = 1
 Semaphore max count value.
 
count_t sm_initial_value = 0
 Semaphore initial count value.
 
Public Member Variables
rtos::clockclock = nullptr
 Attribute with the address of the clock to be used for timeouts.
 

Detailed Description

Definition at line 220 of file os-semaphore.h.

Constructor & Destructor Documentation

◆ attributes_counting() [1/3]

constexpr os::rtos::semaphore::attributes_counting::attributes_counting ( count_t  max_value,
count_t  initial_value 
)
constexpr
Parameters
[in]max_valueMaximum count value.
[in]initial_valueInitial count value.

Definition at line 701 of file os-semaphore.h.

704 // Use the protected constructor.
705 {
706 }
constexpr attributes()
Construct a semaphore attributes object instance.
count_t max_value(void) const
Get the semaphore maximum count value.
count_t initial_value(void) const
Get the semaphore initial count value.

◆ attributes_counting() [2/3]

os::rtos::semaphore::attributes_counting::attributes_counting ( const attributes_counting )
default

◆ attributes_counting() [3/3]

os::rtos::semaphore::attributes_counting::attributes_counting ( attributes_counting &&  )
default

◆ ~attributes_counting()

os::rtos::semaphore::attributes_counting::~attributes_counting ( )
default

Member Function Documentation

◆ operator=() [1/2]

attributes_counting & os::rtos::semaphore::attributes_counting::operator= ( attributes_counting &&  )
default

◆ operator=() [2/2]

attributes_counting & os::rtos::semaphore::attributes_counting::operator= ( const attributes_counting )
default

Member Data Documentation

◆ clock

rtos::clock* os::rtos::internal::attributes_clocked::clock = nullptr
inherited

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 612 of file os-decls.h.

Referenced by os::rtos::event_flags::event_flags(), os::rtos::mutex::mutex(), and os::rtos::timer::timer().

◆ sm_initial_value

semaphore::count_t os::rtos::semaphore::attributes::sm_initial_value = 0
inherited

This values represents the number of resources initially available to the semaphore.

Definition at line 146 of file os-semaphore.h.

◆ sm_max_value

semaphore::count_t os::rtos::semaphore::attributes::sm_max_value = 1
inherited

This values represents the maximum number of resources available to the semaphore.

Definition at line 141 of file os-semaphore.h.


The documentation for this class was generated from the following file: