search cache eviction

This commit is contained in:
Ryan Fleury
2024-11-15 14:40:05 -08:00
parent c42e7837ac
commit 6be2792659
2 changed files with 64 additions and 2 deletions
+4
View File
@@ -185,6 +185,7 @@ struct DI_SearchNode
DI_SearchNode *prev;
U128 key;
U64 scope_refcount;
U64 work_refcount;
U64 last_update_tick_idx;
U64 bucket_read_gen;
U64 bucket_write_gen;
@@ -367,6 +368,7 @@ struct DI_Shared
// rjf: search threads
U64 search_threads_count;
DI_SearchThread *search_threads;
OS_Handle search_evictor_thread;
};
////////////////////////////////
@@ -457,6 +459,8 @@ ASYNC_WORK_DEF(di_search_work);
internal int di_qsort_compare_search_items(DI_SearchItem *a, DI_SearchItem *b);
internal void di_search_thread__entry_point(void *p);
internal void di_search_evictor_thread__entry_point(void *p);
////////////////////////////////
//~ rjf: Match Store