mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 06:54:11 +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() {
|
void SendQueue::handshakeACK() {
|
||||||
std::unique_lock<std::mutex> locker { _handshakeMutex };
|
{
|
||||||
|
std::unique_lock<std::mutex> locker { _handshakeMutex };
|
||||||
_hasReceivedHandshakeACK = true;
|
_hasReceivedHandshakeACK = true;
|
||||||
|
}
|
||||||
// unlock the mutex and notify on the handshake ACK condition
|
|
||||||
locker.unlock();
|
|
||||||
|
|
||||||
|
// Notify on the handshake ACK condition
|
||||||
_handshakeACKCondition.notify_one();
|
_handshakeACKCondition.notify_one();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue