Skip to content

Commit

Permalink
Correct behavior on deactivated permit
Browse files Browse the repository at this point in the history
Signed-off-by: Isaev, Ilya <[email protected]>
  • Loading branch information
isaevil committed Feb 1, 2024
1 parent 144b184 commit 67fcb4b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/tbb/tcm_adaptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,7 @@ 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) {
__TBB_ASSERT(
new_permit.state != TCM_PERMIT_STATE_INACTIVE || new_concurrency == 0,
"TCM did not nullify resources while deactivating the permit"
);
delta = update_concurrency(new_concurrency);
delta = update_concurrency(new_permit.state != TCM_PERMIT_STATE_INACTIVE ? new_concurrency : 0);
}
}
if (delta) {
Expand Down

0 comments on commit 67fcb4b

Please sign in to comment.