Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
Signed-off-by: Isaev, Ilya <[email protected]>
  • Loading branch information
isaevil committed Feb 2, 2024
1 parent d4a12e7 commit ff3ccc6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tbb/tcm_adaptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ class tcm_client : public pm_client {
// The permit has changed during the reading, so the callback will be invoked soon one more time and
// we can just skip this renegotiation iteration.
if (!new_permit.flags.stale) {
// If no other demand, the permit may still have granted concurrency but deactivated state and
// thus we need to enforce 0 allotment for arena so threads won't be trapped in it.
delta = update_concurrency(new_permit.state != TCM_PERMIT_STATE_INACTIVE ? new_concurrency : 0);
}
}
Expand Down

0 comments on commit ff3ccc6

Please sign in to comment.