From 1cf689a6ad9d6c5cd29e11a6a96cb075eb2bbbb8 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 27 Mar 2022 22:11:07 +0200 Subject: Replaced ThreadSync with stl's mutex --- NetEx/NetPeer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'NetEx/NetPeer.cpp') diff --git a/NetEx/NetPeer.cpp b/NetEx/NetPeer.cpp index a324f94..6adbe71 100644 --- a/NetEx/NetPeer.cpp +++ b/NetEx/NetPeer.cpp @@ -143,7 +143,7 @@ NetPeer::ComposeGram() NetGram* g = 0; if ((send_list.size() || multi_send_list.size()) && OKtoSend()) { - AutoThreadSync auto_sync(sync); + const std::lock_guard lock(sync); int xmit_size = send_size; int nmsg = send_list.size(); -- cgit v1.1