solidc
Robust collection of general-purpose cross-platform C libraries and data structures designed for rapid and safe development in C
Loading...
Searching...
No Matches
Public Member Functions | List of all members
fast_rwlock_t Struct Reference

Reader-writer spinlock structure. More...

#include <spinlock.h>

Public Member Functions

 _Atomic (int) state
 

Detailed Description

Reader-writer spinlock structure.

Internal representation of the RW-spinlock. The state field tracks:

Definition at line 49 of file spinlock.h.

Member Function Documentation

◆ _Atomic()

fast_rwlock_t::_Atomic ( int  )

Lock state: >0 = reader count, 0 = unlocked, -1 = writer locked


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