WallShell
An easy-to-use, highly portable, CLI using C99.
ws_atomic_bool_t Struct Reference

Atomic bool structure provided by WallShell. More...

Data Fields

bool b
 Bool currently stored by the atomic_bool. More...
 
ws_mutex_tmut
 Pointer to the mutex the bool uses. More...
 

Detailed Description

Atomic bool structure provided by WallShell.

This is simply a wrapper around your system's mutex type. How it's created, destroyed, and accessed is very important.

Warning
Even though they are exposed, you should never access member variables directly. Make sure you use ws_getAtomicBool() and ws_setAtomicBool(). Create & destroy it using ws_createAtomicBool() and ws_destroyAtomicBool() respectively.

Field Documentation

◆ b

b

Bool currently stored by the atomic_bool.

This should never be accessed directly.

◆ mut

mut

Pointer to the mutex the bool uses.

This should never be accessed directly.


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