Some compiler fixed
This commit is contained in:
parent
e243f1bd94
commit
29da611864
@ -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;
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user