mcslee: being nitpicky ensuring consistent coding style
Summary: no tabs, conditionals with spaces around them, etc
Reviewed By: thrift style rules
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665122 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/concurrency/Monitor.cpp b/lib/cpp/src/concurrency/Monitor.cpp
index 0177a0c..8517c03 100644
--- a/lib/cpp/src/concurrency/Monitor.cpp
+++ b/lib/cpp/src/concurrency/Monitor.cpp
@@ -31,15 +31,15 @@
mutexInitialized_(false),
condInitialized_(false) {
- if(pthread_mutex_init(&pthread_mutex_, NULL) == 0) {
+ if (pthread_mutex_init(&pthread_mutex_, NULL) == 0) {
mutexInitialized_ = true;
- if(pthread_cond_init(&pthread_cond_, NULL) == 0) {
+ if (pthread_cond_init(&pthread_cond_, NULL) == 0) {
condInitialized_ = true;
}
}
- if(!mutexInitialized_ || !condInitialized_) {
+ if (!mutexInitialized_ || !condInitialized_) {
cleanup();
throw SystemResourceException();
}
@@ -66,7 +66,7 @@
&pthread_mutex_,
&abstime);
if (result == ETIMEDOUT) {
- assert(Util::currentTime() >= (now + timeout));
+ assert(Util::currentTime() >= (now + timeout));
throw TimedOutException();
}
}