mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-08 17:05:43 +00:00
do not retry artifact computation if cancelled
This commit is contained in:
@@ -376,7 +376,7 @@ ac_async_tick(void)
|
||||
AC_Artifact val = r->create(r->key, r->cancel_signal, &retry, &gen);
|
||||
|
||||
// rjf: retry? -> resubmit request
|
||||
if(retry && lane_idx() == 0)
|
||||
if(retry && lane_idx() == 0 && !ins_atomic_u32_eval(r->cancel_signal))
|
||||
{
|
||||
AC_RequestBatch *batch = &ac_shared->req_batches[task_idx];
|
||||
MutexScope(batch->mutex)
|
||||
@@ -485,7 +485,7 @@ ac_async_tick(void)
|
||||
lane_ctx(lane_ctx_restore);
|
||||
|
||||
// rjf: retry? -> resubmit request
|
||||
if(retry)
|
||||
if(retry && !ins_atomic_u32_eval(r->cancel_signal))
|
||||
{
|
||||
AC_RequestBatch *batch = &ac_shared->req_batches[task_idx];
|
||||
MutexScope(batch->mutex)
|
||||
|
||||
Reference in New Issue
Block a user