mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-21 05:12:22 -08:00
switch to stripe-cv-based waiting mechanism on nonzero scope touches
This commit is contained in:
1 parent
f99dd2a477
commit
0a51de094d
3 files changed
+13
-16
No files matched your search
@@ -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