SuperTinyKernel™ RTOS 1.08.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
Loading...
Searching...
No Matches
sem_t Struct Reference

A POSIX counting semaphore. More...

#include <semaphore.h>

Collaboration diagram for sem_t:

Public Attributes

struct { 
   uintptr_t   data [(7U+((0) ? 1U :0U)+((2U
      *sizeof(uint32_t)+sizeof(uintptr_t)
      - 1U)/sizeof(uintptr_t))+1U)] 
} __mem
 In-place storage of the C++ semaphore.
void * __handle
 NULL until sem_init(), then points into __mem.

Detailed Description

A POSIX counting semaphore.

Note
Fields are considered private. There is no static initializer (as in POSIX): use sem_init().

Definition at line 86 of file semaphore.h.

Member Data Documentation

◆ __handle

void* sem_t::__handle

NULL until sem_init(), then points into __mem.

Definition at line 91 of file semaphore.h.

Referenced by IsSemReady(), sem_destroy(), sem_init(), and SemOf().

◆ [struct]

struct { ... } sem_t::__mem

In-place storage of the C++ semaphore.

Referenced by sem_init().

◆ data

uintptr_t sem_t::data[(7U+((0) ? 1U :0U)+((2U *sizeof(uint32_t)+sizeof(uintptr_t) - 1U)/sizeof(uintptr_t))+1U)]

Definition at line 89 of file semaphore.h.


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