From 7f0434528b4bc6d9cf1f9b888faf189deffe961c Mon Sep 17 00:00:00 2001 From: gabime Date: Mon, 24 Nov 2014 01:39:51 +0200 Subject: [PATCH] astyle --- bench/glog-bench.cpp | 2 +- include/spdlog/async_logger.h | 5 +++-- include/spdlog/details/blocking_queue.h | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bench/glog-bench.cpp b/bench/glog-bench.cpp index 8568e9ce..837fce53 100644 --- a/bench/glog-bench.cpp +++ b/bench/glog-bench.cpp @@ -11,7 +11,7 @@ int main(int, char* argv[]) FLAGS_log_dir = "logs"; google::InitGoogleLogging(argv[0]); for(int i = 0 ; i < howmany; ++i) - LOG(INFO) << "glog message # " << i << ": This is some text for your pleasure"; + LOG(INFO) << "glog message # " << i << ": This is some text for your pleasure"; return 0; } diff --git a/include/spdlog/async_logger.h b/include/spdlog/async_logger.h index 52931583..d2302c23 100644 --- a/include/spdlog/async_logger.h +++ b/include/spdlog/async_logger.h @@ -37,7 +37,8 @@ namespace spdlog { -namespace sinks { +namespace sinks +{ class async_sink; } @@ -57,7 +58,7 @@ protected: void _stop() override; private: - log_clock::duration _shutdown_duration; + log_clock::duration _shutdown_duration; std::unique_ptr _as; }; } diff --git a/include/spdlog/details/blocking_queue.h b/include/spdlog/details/blocking_queue.h index 34fa4d0d..8fe01998 100644 --- a/include/spdlog/details/blocking_queue.h +++ b/include/spdlog/details/blocking_queue.h @@ -73,7 +73,8 @@ public: std::unique_lock ul(_mutex); if (is_full()) { - if (!_item_popped_cond.wait_until(ul, clock::now() + timeout, [this]() { + if (!_item_popped_cond.wait_until(ul, clock::now() + timeout, [this]() + { return !this->is_full(); })) return false;