diff options
author | Conlain Kelly <conlain.k@gmail.com> | 2018-07-18 15:01:15 -0400 |
---|---|---|
committer | Conlain Kelly <conlain.k@gmail.com> | 2018-07-18 15:01:15 -0400 |
commit | 1257372af4cc6d6b350f4a91ec823f9c00161858 (patch) | |
tree | 13059c3fe739240dac6f68ab196c7205eba81dfb /src/components/utils | |
parent | baccac8a8b4ad7f9eca9130cf24b0ca35d6cfd4d (diff) | |
download | sdl_core-1257372af4cc6d6b350f4a91ec823f9c00161858.tar.gz |
style fix
Diffstat (limited to 'src/components/utils')
-rw-r--r-- | src/components/utils/src/lock_boost.cc | 11 |
1 files changed, 4 insertions, 7 deletions
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(); } |