hot-reloading for dasm_cache, in case of filesystem changes; file stream layer -> expose filesystem-wide generation number, for very coarse-grained generation number to gracefully depend on filesystem changes passively

This commit is contained in:
Ryan Fleury
2024-04-25 09:37:16 -07:00
parent f4ea9e66b0
commit 67eede7513
7 changed files with 66 additions and 12 deletions
+6
View File
@@ -38,6 +38,7 @@ typedef struct FS_Shared FS_Shared;
struct FS_Shared
{
Arena *arena;
U64 change_gen;
// rjf: path info cache
U64 slots_count;
@@ -71,6 +72,11 @@ global FS_Shared *fs_shared = 0;
internal void fs_init(void);
////////////////////////////////
//~ rjf: Change Generation
internal U64 fs_change_gen(void);
////////////////////////////////
//~ rjf: Cache Interaction