Core/Misc: Use std::scoped_lock instead of unique_lock where possible (and old lock_guard)

This commit is contained in:
Shauren
2025-11-30 14:25:32 +01:00
parent d3f2aee245
commit 90be8fafb3
23 changed files with 92 additions and 106 deletions
@@ -114,7 +114,7 @@ void PacketLog::Initialize()
void PacketLog::LogPacket(WorldPacket const& packet, Direction direction, boost::asio::ip::address const& addr, uint16 port, ConnectionType connectionType)
{
std::lock_guard<std::mutex> lock(_logPacketLock);
std::scoped_lock lock(_logPacketLock);
PacketHeader header;
header.Direction = direction == CLIENT_TO_SERVER ? 0x47534d43 : 0x47534d53;