|
CX Framework
Cross-platform C utility framework
|
Modules | |
| Closure Chains | |
| Closures | |
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: