begin work on scheduler view requirements

This commit is contained in:
Ryan Fleury
2024-09-30 15:08:05 -07:00
parent 3fb8b83324
commit fcedcab57c
6 changed files with 48 additions and 15 deletions
+5 -1
View File
@@ -5648,10 +5648,14 @@ ctrl_mem_stream_thread__entry_point(void *p)
//- rjf: read successful -> submit to hash store
U128 hash = {0};
if(got_task && range_base != 0)
if(got_task && range_base != 0 && pre_read_mem_gen == post_read_mem_gen)
{
hash = hs_submit_data(key, &range_arena, str8((U8*)range_base, zero_terminated_size));
}
else if(range_arena != 0)
{
arena_release(range_arena);
}
//- rjf: commit hash to cache
if(got_task) OS_MutexScopeW(process_stripe->rw_mutex)