ascii-chat
Binary v0.16.50-198-g78f51665f
Library lib/v0.3.2-2240-g78f51665f
Video chat in your terminal
Loading...
Searching...
No Matches
session_log_buffer Struct Reference

Thread-safe fixed-size history ring for session-screen log lines. More...

Data Fields

session_log_entry_t entries [SESSION_LOG_BUFFER_SIZE]
atomic_t write_pos
atomic_t sequence
mutex_t mutex

Detailed Description

Thread-safe fixed-size history ring for session-screen log lines.

Thread-safe fixed-size history ring for session-screen log lines.

entries stores formatted messages, while the atomic write position and sequence counter preserve ordering as new lines overwrite old ones. The mutex protects snapshots and clearing; the buffer owns its synchronization state until destruction.

Definition at line 24 of file session_log_buffer.c.

Field Documentation

◆ entries

◆ mutex

◆ sequence

◆ write_pos


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