Skip to content

Commit

Permalink
add method for resetting limit
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Nov 15, 2024
1 parent 6eae3f0 commit 6a9d591
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util/rlimit.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class reslimit {
bool inc();
bool inc(unsigned offset);
uint64_t count() const;
void reset_count() { m_count = 0; }

bool suspended() const { return m_suspend; }
inline bool not_canceled() const { return (m_cancel == 0 && m_count <= m_limit) || m_suspend; }
Expand Down

0 comments on commit 6a9d591

Please sign in to comment.