aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/common/monitored_refcount.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore/src/vespa/searchcore/proton/common/monitored_refcount.cpp')
-rw-r--r--searchcore/src/vespa/searchcore/proton/common/monitored_refcount.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/common/monitored_refcount.cpp b/searchcore/src/vespa/searchcore/proton/common/monitored_refcount.cpp
index 3cecc8308ad..6b35528318a 100644
--- a/searchcore/src/vespa/searchcore/proton/common/monitored_refcount.cpp
+++ b/searchcore/src/vespa/searchcore/proton/common/monitored_refcount.cpp
@@ -18,14 +18,14 @@ MonitoredRefCount::~MonitoredRefCount()
}
void
-MonitoredRefCount::retain()
+MonitoredRefCount::retain() noexcept
{
std::lock_guard<std::mutex> guard(_lock);
++_refCount;
}
void
-MonitoredRefCount::release()
+MonitoredRefCount::release() noexcept
{
std::lock_guard<std::mutex> guard(_lock);
--_refCount;