Skip to content

Commit

Permalink
Removed JEvent use check when it is returning to pool
Browse files Browse the repository at this point in the history
  • Loading branch information
RaiqaRasool committed Nov 6, 2024
1 parent a347e9b commit e82f930
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/libraries/JANA/Topology/JEventPool.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@ class JEventPool {
item->Clear();
}
auto use_count = item->shared_from_this().use_count();
if (use_count > 2) {
// Use count should be 2 because there's the shared_ptr in `m_owned_events`, and there's the temporary shared_ptr created just now
throw JException("Attempted to return a JEvent to the pool while it is still being used! use_count=%d", use_count);
}

LocalPool& pool = *(m_pools[location]);

Expand Down

0 comments on commit e82f930

Please sign in to comment.