CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
Closures and Callbacks

Modules

 Closure Chains
 
 Closures
 

Detailed Description

Function closures with captured environment and thread-safe callback chains.

Closures provide a way to capture variables (environment) with a function pointer for later execution. This is more flexible than plain function pointers as it allows you to pass context data without global variables or manual context structs.

Closure chains provide thread-safe lists of closures, ideal for implementing event systems with multiple callbacks.

Key features:

See also
Basic Closures
Closure Chains