ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
asciichat_errno_scope_t Struct Reference

When code needs to work with asciichat errno snapshot, it keeps total, copied here instead of scattering it across globals. Initialization establishes the handles and sizes; teardown must release any allocation, lock, thread, or callback context recorded in those fields. More...

#include <include/ascii-chat/asciichat_errno.h>

Data Fields

uint64_t thread_id
uint64_t generation
uint64_t after_id
uint64_t previous_after_id

Detailed Description

When code needs to work with asciichat errno snapshot, it keeps total, copied here instead of scattering it across globals. Initialization establishes the handles and sizes; teardown must release any allocation, lock, thread, or callback context recorded in those fields.

Checkpoints use IDs, not depths, so concurrent removals cannot invalidate them.

The useful part of asciichat errno scope is in thread_id, generation, after_id, previous_after_id: together they describe what is pending, who owns it, and how much data is valid. Keep the object with its parent operation and use the parent cleanup path.

Definition at line 90 of file asciichat_errno.h.

Field Documentation

◆ after_id

uint64_t asciichat_errno_scope_t::after_id

◆ generation

uint64_t asciichat_errno_scope_t::generation

◆ previous_after_id

uint64_t asciichat_errno_scope_t::previous_after_id

Definition at line 94 of file asciichat_errno.h.

Referenced by errno_scope_end().

◆ thread_id

uint64_t asciichat_errno_scope_t::thread_id

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