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

For mutex wait snapshot, this is the live record that ties mutex_key, thread_key, since_ns, cycle together. The owning code creates it, updates it while work is active, and releases its handles and pointed-to storage before freeing the record. More...

#include <include/ascii-chat/debug/mutex.h>

Data Fields

uintptr_t mutex_key
uintptr_t thread_key
uint64_t since_ns
bool cycle
char span_name [224]
int error_code
char error_message [1024]
uint8_t trace_id [16]
uint8_t span_id [8]
uint8_t parent_span_id [8]
uint64_t span_start_unix_ns
bool context_valid
bool context_sampled

Detailed Description

For mutex wait snapshot, this is the live record that ties mutex_key, thread_key, since_ns, cycle together. The owning code creates it, updates it while work is active, and releases its handles and pointed-to storage before freeing the record.

Nonblocking diagnostic summary; no logging or application locks.

Definition at line 111 of file mutex.h.

Field Documentation

◆ context_sampled

bool mutex_wait_snapshot_t::context_sampled

Definition at line 122 of file mutex.h.

◆ context_valid

bool mutex_wait_snapshot_t::context_valid

Definition at line 122 of file mutex.h.

◆ cycle

bool mutex_wait_snapshot_t::cycle

Definition at line 115 of file mutex.h.

Referenced by mutex_stack_try_snapshot().

◆ error_code

int mutex_wait_snapshot_t::error_code

Definition at line 117 of file mutex.h.

◆ error_message

char mutex_wait_snapshot_t::error_message[1024]

Definition at line 118 of file mutex.h.

◆ mutex_key

uintptr_t mutex_wait_snapshot_t::mutex_key

Definition at line 112 of file mutex.h.

Referenced by mutex_stack_try_snapshot().

◆ parent_span_id

uint8_t mutex_wait_snapshot_t::parent_span_id[8]

Definition at line 120 of file mutex.h.

◆ since_ns

uint64_t mutex_wait_snapshot_t::since_ns

Definition at line 114 of file mutex.h.

Referenced by mutex_stack_try_snapshot().

◆ span_id

uint8_t mutex_wait_snapshot_t::span_id[8]

Definition at line 119 of file mutex.h.

◆ span_name

char mutex_wait_snapshot_t::span_name[224]

Definition at line 116 of file mutex.h.

◆ span_start_unix_ns

uint64_t mutex_wait_snapshot_t::span_start_unix_ns

Definition at line 121 of file mutex.h.

◆ thread_key

uintptr_t mutex_wait_snapshot_t::thread_key

Definition at line 113 of file mutex.h.

Referenced by mutex_stack_try_snapshot().

◆ trace_id

uint8_t mutex_wait_snapshot_t::trace_id[16]

Definition at line 119 of file mutex.h.


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