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