Some compiler fixed

This commit is contained in:
WolverinDEV 2020-02-16 12:38:49 +01:00
parent e243f1bd94
commit 29da611864

View File

@ -280,12 +280,12 @@ namespace ts {
std::shared_lock<std::shared_mutex> require_connected_state(bool blocking = false) {
//try_to_lock_t
std::shared_lock<std::shared_mutex> disconnect_lock{};
if(__glibc_unlikely(blocking))
if(blocking) [[unlikely]]
disconnect_lock = std::shared_lock{this->finalDisconnectLock};
else
disconnect_lock = std::shared_lock{this->finalDisconnectLock, std::try_to_lock};
if(__glibc_unlikely(!disconnect_lock))
if(!disconnect_lock) [[unlikely]]
return disconnect_lock;
{