|
|
|
@ -39,7 +39,9 @@ namespace spdlog {
|
|
|
|
|
|
|
|
|
|
// should only be moved in or out of the queue..
|
|
|
|
|
async_msg(const async_msg &) = delete;
|
|
|
|
|
#if defined(_MSC_VER) && _MSC_VER <= 1800 // support for vs2013 move
|
|
|
|
|
|
|
|
|
|
// support for vs2013 move
|
|
|
|
|
#if defined(_MSC_VER) && _MSC_VER <= 1800
|
|
|
|
|
async_msg(async_msg &&other) SPDLOG_NOEXCEPT : msg_type(other.msg_type),
|
|
|
|
|
level(other.level),
|
|
|
|
|
time(other.time),
|
|
|
|
@ -61,7 +63,7 @@ namespace spdlog {
|
|
|
|
|
worker_ptr = std::move(other.worker_ptr);
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
#else
|
|
|
|
|
#else // (_MSC_VER) && _MSC_VER <= 1800
|
|
|
|
|
async_msg(async_msg &&other) = default;
|
|
|
|
|
async_msg &operator=(async_msg &&other) = default;
|
|
|
|
|
#endif
|
|
|
|
@ -173,9 +175,7 @@ namespace spdlog {
|
|
|
|
|
|
|
|
|
|
void worker_loop_()
|
|
|
|
|
{
|
|
|
|
|
while (process_next_msg_())
|
|
|
|
|
{
|
|
|
|
|
};
|
|
|
|
|
while (process_next_msg_()) {};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// process next message in the queue
|
|
|
|
|