ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
rcu.h
Go to the documentation of this file.
1
89
90#pragma once
91
92#include "../options/options.h" // Provides options_t struct definition
93#include <libplatform/atomic.h>
94#include <libplatform/mutex.h>
95#include <stdbool.h>
96
97#ifdef __cplusplus
98extern "C" {
99#endif
100
110
121
128void options_state_destroy(void);
129
189const options_t *options_get(void);
190
193
202
203#ifdef __cplusplus
204}
205#endif
asciichat_error_t
Error and exit codes - unified status values (0-255).
Definition error_codes.h:48
struct options_state options_t
Immutable, RCU-published snapshot of the application's runtime configuration.
const options_t * options_get(void)
Get pointer to current options struct (lock-free, thread-safe).
Definition rcu.c:513
⚙️ Unified options parsing system for ascii-chat with builder pattern and lock-free access
size_t options_retired_snapshot_count(void)
Definition rcu.c:320
void options_state_destroy(void)
Shutdown RCU options system.
Definition rcu.c:483
asciichat_error_t options_state_init(void)
Initialize RCU options system.
Definition rcu.c:382
void options_cleanup_schema(void)
Clean up schema resources.
asciichat_error_t options_state_set(const options_t *opts)
Set options from a parsed options struct.
Definition rcu.c:459