From 1257372af4cc6d6b350f4a91ec823f9c00161858 Mon Sep 17 00:00:00 2001 From: Conlain Kelly Date: Wed, 18 Jul 2018 15:01:15 -0400 Subject: style fix --- src/components/utils/src/lock_boost.cc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/components/utils') diff --git a/src/components/utils/src/lock_boost.cc b/src/components/utils/src/lock_boost.cc index a76bd02a78..c22ac467b5 100644 --- a/src/components/utils/src/lock_boost.cc +++ b/src/components/utils/src/lock_boost.cc @@ -51,11 +51,10 @@ Lock::~Lock() { void Lock::Acquire() { try { - mutex_.lock(); + mutex_.lock(); } catch (std::exception err) { LOG4CXX_FATAL(logger_, - "Failed to acquire mutex " << &mutex_ << ": " << - err.what()); + "Failed to acquire mutex " << &mutex_ << ": " << err.what()); NOTREACHED(); } AssertFreeAndMarkTaken(); @@ -103,18 +102,16 @@ RecursiveLock::~RecursiveLock() { void RecursiveLock::Acquire() { try { - mutex_.lock(); + mutex_.lock(); } catch (std::exception err) { LOG4CXX_FATAL(logger_, - "Failed to acquire mutex " << &mutex_ << ": " << - err.what()); + "Failed to acquire mutex " << &mutex_ << ": " << err.what()); NOTREACHED(); } AssertFreeAndMarkTaken(); } void RecursiveLock::Release() { - AssertTakenAndMarkFree(); mutex_.unlock(); } -- cgit v1.2.1