Message ID | 1308767187-10376-3-git-send-email-jaschut@sandia.gov (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/src/common/Throttle.h b/src/common/Throttle.h index cd772dd..8fd2625 100644 --- a/src/common/Throttle.h +++ b/src/common/Throttle.h @@ -68,16 +68,15 @@ public: return count; } - bool get(int64_t c = 1, int64_t m = 0) { + void get(int64_t c = 1, int64_t m = 0) { assert(c >= 0); Mutex::Locker l(lock); if (m) { assert(m > 0); _reset_max(m); } - bool waited = _wait(c); + _wait(c); count += c; - return waited; } /* Returns true if it successfully got the requested amount,
Signed-off-by: Jim Schutt <jaschut@sandia.gov> --- src/common/Throttle.h | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)