mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-23 20:24:59 -07:00
switch to stripe-cv-based waiting mechanism on nonzero scope touches
This commit is contained in:
@@ -1434,10 +1434,8 @@ ctrl_scope_close(CTRL_Scope *scope)
|
||||
for(CTRL_ScopeCallStackTouch *t = scope->first_call_stack_touch, *next = 0; t != 0; t = next)
|
||||
{
|
||||
next = t->next;
|
||||
if(!ins_atomic_u64_dec_eval(&t->node->scope_touch_count))
|
||||
{
|
||||
os_condition_variable_broadcast(t->stripe->cv);
|
||||
}
|
||||
ins_atomic_u64_dec_eval(&t->node->scope_touch_count);
|
||||
os_condition_variable_broadcast(t->stripe->cv);
|
||||
SLLStackPush(ctrl_tctx->free_call_stack_touch, t);
|
||||
}
|
||||
SLLStackPush(ctrl_tctx->free_scope, scope);
|
||||
|
||||
Reference in New Issue
Block a user