|
cwist
Modern C web framework with libttak runtime
|
Fixed Server Memory Manager. More...
#include <app.h>

Public Attributes | |
| size_t | total_capacity |
| Total capacity (defaults to sum of files * 2) | |
| size_t | current_used |
| Bytes accounted for by active files. | |
| cwist_file_t * | files |
| Array of tracked files. | |
| size_t | file_count |
| size_t | files_capacity |
| Capacity of the files array. | |
| uint64_t | retire_grace_ns |
| Delay before recycling replaced buffers. | |
| ttak_mem_tree_t | file_tree |
| Lifetime tracking tree for file buffers. | |
| pthread_mutex_t | lock |
| pthread_t | watcher_thread |
| bool | watcher_running |
| int | check_interval_ms |
Fixed Server Memory Manager.
Pre-allocates a large contiguous block of memory to serve static files via Zero-Copy pointer passing. Supports hot-reloading on file change.
| size_t cwist_fix_server_mem::current_used |
| size_t cwist_fix_server_mem::file_count |
Definition at line 252 of file app.h.
Referenced by cwist_app_destroy().
| ttak_mem_tree_t cwist_fix_server_mem::file_tree |
Lifetime tracking tree for file buffers.
Definition at line 256 of file app.h.
Referenced by cwist_app_destroy().
| cwist_file_t* cwist_fix_server_mem::files |
| size_t cwist_fix_server_mem::files_capacity |
| pthread_mutex_t cwist_fix_server_mem::lock |
Definition at line 258 of file app.h.
Referenced by cwist_app_destroy().
| uint64_t cwist_fix_server_mem::retire_grace_ns |
| size_t cwist_fix_server_mem::total_capacity |
| bool cwist_fix_server_mem::watcher_running |
Definition at line 260 of file app.h.
Referenced by cwist_app_destroy().
| pthread_t cwist_fix_server_mem::watcher_thread |
Definition at line 259 of file app.h.
Referenced by cwist_app_destroy().