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

Deferred free list for old options structs. More...

Data Fields

options_t * value
struct retired_options * next

Detailed Description

Deferred free list for old options structs.

We can't immediately free old structs because readers might still be using them. Simple strategy: Keep old pointers in a list, free them at shutdown.

Future improvements:

  • Hazard pointers: Track which structs readers are using
  • Epoch-based reclamation: Free after grace period
  • Reference counting: Free when no readers

Current approach: Never free until shutdown (acceptable for rare updates)

Definition at line 300 of file rcu.c.

Field Documentation

◆ next

struct retired_options* retired_options::next

Definition at line 302 of file rcu.c.

Referenced by options_state_set().

◆ value

options_t* retired_options::value

Definition at line 301 of file rcu.c.


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