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
pthread_mutex_t Struct Reference

A pthread mutex. More...

#include <stk_c_pthread.h>

Collaboration diagram for pthread_mutex_t:

Public Attributes

stk_mutex_mem_t __mem
 In-place storage for the STK mutex object.
void * __handle
 Object constructed in __mem, or NULL if not yet constructed.
int __type
 PTHREAD_MUTEX_* type; 0 (NORMAL) when statically initialized.

Detailed Description

A pthread mutex.

Note
Fields are considered private. May be statically initialized with PTHREAD_MUTEX_INITIALIZER, in which case the underlying STK mutex is created lazily on first use.

Definition at line 323 of file stk_c_pthread.h.

Member Data Documentation

◆ __handle

void* pthread_mutex_t::__handle

Object constructed in __mem, or NULL if not yet constructed.

Definition at line 326 of file stk_c_pthread.h.

Referenced by stk::pthread::EnsureMutex(), stk::pthread::HandleOf(), pthread_cond_timedwait(), pthread_cond_wait(), pthread_mutex_destroy(), pthread_mutex_init(), and pthread_mutex_unlock().

◆ __mem

stk_mutex_mem_t pthread_mutex_t::__mem

In-place storage for the STK mutex object.

Definition at line 325 of file stk_c_pthread.h.

Referenced by stk::pthread::EnsureMutex(), and pthread_mutex_init().

◆ __type

int pthread_mutex_t::__type

PTHREAD_MUTEX_* type; 0 (NORMAL) when statically initialized.

Definition at line 327 of file stk_c_pthread.h.

Referenced by stk::pthread::PreLockCheck(), pthread_cond_timedwait(), pthread_cond_wait(), and pthread_mutex_init().


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