Skip to content

Commit 6a9d591

Browse files
add method for resetting limit
1 parent 6eae3f0 commit 6a9d591

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/util/rlimit.h

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class reslimit {
5050
bool inc();
5151
bool inc(unsigned offset);
5252
uint64_t count() const;
53+
void reset_count() { m_count = 0; }
5354

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

0 commit comments

Comments
 (0)