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

Global registry with uthash and rwlock. More...

Data Fields

named_entry_t * entries
rwlock_t entries_lock
lifecycle_t lifecycle

Detailed Description

Global registry with uthash and rwlock.

Uses uthash for O(1) lookups protected by rwlock. Rwlock is held ONLY during HASH_ADD/HASH_FIND operations. No mutations occur while holding the lock - avoids deadlocks.

Definition at line 86 of file debug/named.c.

Field Documentation

◆ entries

named_entry_t* named_registry_t::entries

Definition at line 87 of file debug/named.c.

◆ entries_lock

rwlock_t named_registry_t::entries_lock

Definition at line 88 of file debug/named.c.

◆ lifecycle

lifecycle_t named_registry_t::lifecycle

Definition at line 89 of file debug/named.c.


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