From 8ab148e256a02040d27673770f8ef7b60acf2745 Mon Sep 17 00:00:00 2001 From: Conlain Kelly Date: Mon, 25 Jun 2018 16:56:02 -0400 Subject: undo dumb style changes --- src/components/utils/src/lock_posix.cc | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'src/components/utils/src/lock_posix.cc') diff --git a/src/components/utils/src/lock_posix.cc b/src/components/utils/src/lock_posix.cc index 9b63ea4218..e5e6d7fad0 100644 --- a/src/components/utils/src/lock_posix.cc +++ b/src/components/utils/src/lock_posix.cc @@ -30,14 +30,12 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#include "utils/lock.h" #include -#include #include #include #include #include -#include -#include "utils/lock.h" #include "utils/logger.h" namespace sync_primitives { @@ -71,9 +69,9 @@ Lock::~Lock() { #endif int32_t status = pthread_mutex_destroy(&mutex_); if (status != 0) { - LOG4CXX_FATAL( - logger_, - "Failed to destroy mutex " << &mutex_ << ": " << strerror(status)); + LOG4CXX_FATAL(logger_, + "Failed to destroy mutex " << &mutex_ << ": " + << strerror(status)); NOTREACHED(); } } @@ -81,9 +79,9 @@ Lock::~Lock() { void Lock::Acquire() { const int32_t status = pthread_mutex_lock(&mutex_); if (status != 0) { - LOG4CXX_FATAL( - logger_, - "Failed to acquire mutex " << &mutex_ << ": " << strerror(status)); + LOG4CXX_FATAL(logger_, + "Failed to acquire mutex " << &mutex_ << ": " + << strerror(status)); NOTREACHED(); } else { AssertFreeAndMarkTaken(); @@ -94,9 +92,9 @@ void Lock::Release() { AssertTakenAndMarkFree(); const int32_t status = pthread_mutex_unlock(&mutex_); if (status != 0) { - LOG4CXX_FATAL( - logger_, - "Failed to unlock mutex" << &mutex_ << ": " << strerror(status)); + LOG4CXX_FATAL(logger_, + "Failed to unlock mutex" << &mutex_ << ": " + << strerror(status)); NOTREACHED(); } } -- cgit v1.2.1