Concepts#

How RCSW works and why, independent of any one module. Read these before the module reference pages; the API documentation links back here instead of repeating them.

Page

Covers

Memory Model

Who provides the memory for a handle, its data and its metadata; sizing caller-provided memory; zeroing; alignment.

Error Handling

status_t, errno, function precondition checking, and the goto error idiom.

Components and Linking

How RCSW is split into components, what depends on what, and what changes in a shared-library build.

Event Reporting

Modules, IDs, levels, and compile-time versus run-time filtering in the ER framework.

Data Structures

Conventions shared by every data structure: configuration, callbacks, element ownership, iterators, flags, and the binary search tree family.

Concurrency

What is and isn’t thread-safe, relative versus absolute timeouts, and values that are only snapshots.