aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHåvard Pettersen <havardpe@oath.com>2018-08-28 12:58:33 +0000
committerHåvard Pettersen <havardpe@oath.com>2018-08-28 12:58:33 +0000
commit3d67de8d8e3bfbcfd16abac27cf8f2b33a3303bc (patch)
tree6183bd892aa6240e1643ac8662d6e4929d30a99f /vespalib
parent8c943e0067c9d117c6cc1557f2bd2dc12a001431 (diff)
fixes based on feedback
- do not check broken flag when doing flush - use auto-detection of guard template parameter
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/net/crypto_engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/net/crypto_engine.cpp b/vespalib/src/vespa/vespalib/net/crypto_engine.cpp
index ec436a414cc..8832b4b1cfe 100644
--- a/vespalib/src/vespa/vespalib/net/crypto_engine.cpp
+++ b/vespalib/src/vespa/vespalib/net/crypto_engine.cpp
@@ -171,7 +171,7 @@ CryptoEngine::~CryptoEngine() = default;
CryptoEngine::SP
CryptoEngine::get_default()
{
- std::lock_guard<std::mutex> guard(_shared_lock);
+ std::lock_guard guard(_shared_lock);
if (!_shared_default) {
_shared_default = create_default_crypto_engine();
}