mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 00:56:48 +02:00
Coding standart for locks
This commit is contained in:
parent
a34e1d85a5
commit
3a61e6b6a3
1 changed files with 5 additions and 6 deletions
|
@ -230,13 +230,12 @@ void SendQueue::overrideNAKListFromPacket(ControlPacket& packet) {
|
|||
}
|
||||
|
||||
void SendQueue::handshakeACK() {
|
||||
std::unique_lock<std::mutex> locker { _handshakeMutex };
|
||||
|
||||
_hasReceivedHandshakeACK = true;
|
||||
|
||||
// unlock the mutex and notify on the handshake ACK condition
|
||||
locker.unlock();
|
||||
{
|
||||
std::unique_lock<std::mutex> locker { _handshakeMutex };
|
||||
_hasReceivedHandshakeACK = true;
|
||||
}
|
||||
|
||||
// Notify on the handshake ACK condition
|
||||
_handshakeACKCondition.notify_one();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue