Embedded Artistry Framework
Embedded Systems C++ Framework
Typedefs | Enumerations
embvm::semaphore Namespace Reference

Semaphore types and definitions. More...

Typedefs

using count_t = int32_t
 Type used to store the semaphore count. More...
 
using handle_t = uintptr_t
 Generic type for semaphore handles. More...
 

Enumerations

enum  mode { mode::defaultMode = 0, mode::binary, mode::counting }
 Semaphore mode options. More...
 

Detailed Description

Semaphore types and definitions.

Typedef Documentation

◆ count_t

Type used to store the semaphore count.

◆ handle_t

Generic type for semaphore handles.

Enumeration Type Documentation

◆ mode

Semaphore mode options.

Semaphores are typically operated in one of two manners:

  • binary mode, which has a ceiling of 1
  • counting mode, which has a ceiling specified during semaphore creation
Enumerator
defaultMode 

Use the default mode specified by the RTOS.

binary 

Binary mode, ceiling is 1.

counting 

Counting mode, ceiling is > 1.