ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
rcu.h
Go to the documentation of this file.
1
83
84#pragma once
85
86#include "../options/options.h" // Provides options_t struct definition
87#include <libplatform/mutex.h>
88#include <stdbool.h>
89#include <libplatform/atomic.h>
90
100
111
118void options_state_destroy(void);
119
177const options_t *options_get(void);
178
181
189void options_cleanup_schema(void);
asciichat_error_t
Error and exit codes - unified status values (0-255).
Definition error_codes.h:44
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:511
⚙️ Unified options parsing system for ascii-chat with builder pattern and lock-free access
size_t options_retired_snapshot_count(void)
Definition rcu.c:322
void options_state_destroy(void)
Shutdown RCU options system.
Definition rcu.c:476
asciichat_error_t options_state_init(void)
Initialize RCU options system.
Definition rcu.c:380
void options_cleanup_schema(void)
Clean up schema resources.
Definition rcu.c:507
asciichat_error_t options_state_set(const options_t *opts)
Set options from a parsed options struct.
Definition rcu.c:450