mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
format
This commit is contained in:
parent
5997e5aae7
commit
4b9949de7b
@ -75,15 +75,11 @@ int main(int argc, char *argv[])
|
||||
|
||||
for (int i = 0; i < 3; ++i)
|
||||
{
|
||||
spdlog::init_thread_pool(queue_size, 1);
|
||||
spdlog::init_thread_pool(queue_size, 1);
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user