ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
rwlock_t Struct Reference

Read-write lock type (POSIX: pthread_rwlock_t with debug tracking) More...

#include <include/ascii-chat/platform/rwlock.h>

Data Fields

pthread_rwlock_t impl
 Underlying POSIX rwlock.
 
const char * name
 Human-readable name for named registry (all builds)
 
uint64_t last_rdlock_time_ns
 Timestamp of last read lock acquisition (nanoseconds)
 
uint64_t last_wrlock_time_ns
 Timestamp of last write lock acquisition (nanoseconds)
 
uint64_t last_unlock_time_ns
 Timestamp of last unlock (nanoseconds)
 
uintptr_t write_held_by_key
 Registry key of thread holding write lock (0 if not held)
 
atomic_t read_lock_count
 Number of threads holding read locks (thread-safe atomic)
 
uint64_t rdlock_count
 Total read lock acquisitions.
 
uint64_t wrlock_count
 Total write lock acquisitions.
 
uint64_t unlock_count
 Total unlocks.
 

Detailed Description

Read-write lock type (POSIX: pthread_rwlock_t with debug tracking)

Definition at line 61 of file rwlock.h.


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