format
This commit is contained in:
		@@ -79,11 +79,7 @@ int main(int argc, char *argv[])
 | 
			
		||||
            auto as = spdlog::basic_logger_mt<spdlog::create_async>("as", "logs/basic_async.log", true);
 | 
			
		||||
            bench_mt(howmany, as, threads);
 | 
			
		||||
            spdlog::drop("as");
 | 
			
		||||
            
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
    catch (std::exception &ex)
 | 
			
		||||
    {
 | 
			
		||||
 
 | 
			
		||||
@@ -72,7 +72,6 @@ public:
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    size_t max_items_;
 | 
			
		||||
    std::mutex queue_mutex_;
 | 
			
		||||
 
 | 
			
		||||
@@ -139,7 +139,6 @@ public:
 | 
			
		||||
        return msg_counter_.load(std::memory_order_relaxed);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    std::atomic<size_t> msg_counter_; // total # of messages processed in this pool
 | 
			
		||||
    q_type q_;
 | 
			
		||||
 
 | 
			
		||||
@@ -77,7 +77,6 @@ TEST_CASE("tp->wait_empty() ", "[async]")
 | 
			
		||||
    logger->flush();
 | 
			
		||||
    tp.reset();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    REQUIRE(test_sink->msg_counter() == messages);
 | 
			
		||||
    REQUIRE(test_sink->flush_counter() == 1);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user