Struct rdwrlock

Struct Documentation

struct rdwrlock

Fair reader-writer lock that guarantees that neither readers nor writers will starve.

Public Members

struct csem order

Used to form a queue of readers/writers

struct csem access

Exclusive access semaphore

struct csem read

Semaphore for updating n_readers

size_t n_readers

Number of readers currently accessing resource

uint32_t flags

Configuration flags. Valid flags are:

All other flags are ignored.