diff options
author | Tim King <taking@cs.nyu.edu> | 2018-01-08 22:04:02 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-08 22:04:02 -0800 |
commit | 3c6398194b01372720964590b2b07d93590e511d (patch) | |
tree | 1e1f40d79eeabe8b30524fe96d279a4f3d5b8fd7 /src/util/resource_manager.cpp | |
parent | 707e27e61addafdbcce5e7b6d32a61985f563dfb (diff) |
Removing more miscellaneous throw specifiers. (#1488)
Removing more miscellaneous throw specifiers.
Diffstat (limited to 'src/util/resource_manager.cpp')
-rw-r--r-- | src/util/resource_manager.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/util/resource_manager.cpp b/src/util/resource_manager.cpp index b2adb4aba..9bcdcd96b 100644 --- a/src/util/resource_manager.cpp +++ b/src/util/resource_manager.cpp @@ -173,13 +173,14 @@ uint64_t ResourceManager::getTimeRemaining() const { return d_thisCallTimeBudget - time_passed; } -void ResourceManager::spendResource(unsigned ammount) throw (UnsafeInterruptException) { +void ResourceManager::spendResource(unsigned amount) +{ ++d_spendResourceCalls; - d_cumulativeResourceUsed += ammount; + d_cumulativeResourceUsed += amount; if (!d_on) return; Debug("limit") << "ResourceManager::spendResource()" << std::endl; - d_thisCallResourceUsed += ammount; + d_thisCallResourceUsed += amount; if(out()) { Trace("limit") << "ResourceManager::spendResource: interrupt!" << std::endl; Trace("limit") << " on call " << d_spendResourceCalls << std::endl; |