ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
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 297 of file rcu.c.

Field Documentation

◆ next

struct retired_options* retired_options::next

Definition at line 299 of file rcu.c.

Referenced by options_state_set().

◆ value

options_t* retired_options::value

Definition at line 298 of file rcu.c.


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