mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 02:19:35 +08:00
Fix some typos
This commit is contained in:
@@ -37,8 +37,7 @@ struct async_factory_impl {
|
||||
static std::shared_ptr<async_logger> create(std::string logger_name, SinkArgs &&...args) {
|
||||
auto ®istry_inst = details::registry::instance();
|
||||
|
||||
// create global thread pool if not already exists..
|
||||
|
||||
// create global thread pool if not already exists
|
||||
auto &mutex = registry_inst.tp_mutex();
|
||||
std::lock_guard<std::recursive_mutex> tp_lock(mutex);
|
||||
auto tp = registry_inst.get_tp();
|
||||
|
@@ -21,7 +21,7 @@ namespace spdlog {
|
||||
// Async overflow policy - block by default.
|
||||
enum class async_overflow_policy {
|
||||
block, // Block until message can be enqueued
|
||||
overrun_oldest, // Discard oldest message in the queue if full when trying to
|
||||
overrun_oldest, // Discard the oldest message in the queue if full when trying to
|
||||
// add new item.
|
||||
discard_new // Discard new message if the queue is full when trying to add new item.
|
||||
};
|
||||
|
@@ -32,7 +32,7 @@ public:
|
||||
circular_q &operator=(const circular_q &) = default;
|
||||
|
||||
// move cannot be default,
|
||||
// since we need to reset head_, tail_, etc to zero in the moved object
|
||||
// since we need to reset head_, tail_, etc. to zero in the moved object
|
||||
circular_q(circular_q &&other) noexcept { copy_moveable(std::move(other)); }
|
||||
|
||||
circular_q &operator=(circular_q &&other) noexcept {
|
||||
|
@@ -36,7 +36,7 @@ private:
|
||||
void flush_() override;
|
||||
#ifdef _WIN32
|
||||
HANDLE handle_;
|
||||
#endif // WIN32
|
||||
#endif // _WIN32
|
||||
};
|
||||
|
||||
template <typename Mutex>
|
||||
|
Reference in New Issue
Block a user