mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-17 22:51:25 +00:00
collapse user clock indices into base-layer-provided clock counter; fuzzy_search -> dbgi_search
This commit is contained in:
@@ -1628,21 +1628,6 @@ txt_tctx_ensure_inited(void)
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: User Clock
|
||||
|
||||
internal void
|
||||
txt_user_clock_tick(void)
|
||||
{
|
||||
ins_atomic_u64_inc_eval(&txt_shared->user_clock_idx);
|
||||
}
|
||||
|
||||
internal U64
|
||||
txt_user_clock_idx(void)
|
||||
{
|
||||
return ins_atomic_u64_eval(&txt_shared->user_clock_idx);
|
||||
}
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Scoped Access
|
||||
|
||||
@@ -1696,7 +1681,7 @@ txt_scope_touch_node__stripe_r_guarded(TXT_Scope *scope, TXT_Node *node)
|
||||
TXT_Touch *touch = txt_tctx->free_touch;
|
||||
ins_atomic_u64_inc_eval(&node->scope_ref_count);
|
||||
ins_atomic_u64_eval_assign(&node->last_time_touched_us, os_now_microseconds());
|
||||
ins_atomic_u64_eval_assign(&node->last_user_clock_idx_touched, txt_user_clock_idx());
|
||||
ins_atomic_u64_eval_assign(&node->last_user_clock_idx_touched, update_tick_idx());
|
||||
if(touch != 0)
|
||||
{
|
||||
SLLStackPop(txt_tctx->free_touch);
|
||||
@@ -2351,7 +2336,7 @@ txt_evictor_thread__entry_point(void *p)
|
||||
for(;;)
|
||||
{
|
||||
U64 check_time_us = os_now_microseconds();
|
||||
U64 check_time_user_clocks = txt_user_clock_idx();
|
||||
U64 check_time_user_clocks = update_tick_idx();
|
||||
U64 evict_threshold_us = 10*1000000;
|
||||
U64 evict_threshold_user_clocks = 10;
|
||||
for(U64 slot_idx = 0; slot_idx < txt_shared->slots_count; slot_idx += 1)
|
||||
|
||||
@@ -263,12 +263,6 @@ internal void txt_init(void);
|
||||
|
||||
internal void txt_tctx_ensure_inited(void);
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: User Clock
|
||||
|
||||
internal void txt_user_clock_tick(void);
|
||||
internal U64 txt_user_clock_idx(void);
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Scoped Access
|
||||
|
||||
|
||||
Reference in New Issue
Block a user