gabime / spdlog

Fast C++ logging library.
Other
24k stars 4.5k forks source link

use std::lock_guard instead of std::unique_lock #3179

Closed wsehjk closed 2 weeks ago

wsehjk commented 2 weeks ago

I think overrun_counter, size, and reset_overrun_counter func don't need the flexibility of std::unique_lock, it's better to use std::lock_guard with minimal overhead;

gabime commented 2 weeks ago

Merged. Thanks @wsehjk