diff options
author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-08-28 11:27:01 +0200 |
---|---|---|
committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-08-29 14:12:59 +0200 |
commit | e33fdb42960b623eed3cca8943ce85cd44977c53 (patch) | |
tree | bf6929cbbdd6137a0ea7458c7c60214c861d0738 /core/debugger | |
parent | fd7239cfab228c50777cd54a8bf6eb279a02ef81 (diff) | |
download | redot-engine-e33fdb42960b623eed3cca8943ce85cd44977c53.tar.gz |
Use `MutexLock` in more places
Diffstat (limited to 'core/debugger')
-rw-r--r-- | core/debugger/remote_debugger_peer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/debugger/remote_debugger_peer.cpp b/core/debugger/remote_debugger_peer.cpp index 21a9014626..9dca47a0b4 100644 --- a/core/debugger/remote_debugger_peer.cpp +++ b/core/debugger/remote_debugger_peer.cpp @@ -144,9 +144,8 @@ void RemoteDebuggerPeerTCP::_read_in() { Error err = decode_variant(var, buf, in_pos, &read); ERR_CONTINUE(read != in_pos || err != OK); ERR_CONTINUE_MSG(var.get_type() != Variant::ARRAY, "Malformed packet received, not an Array."); - mutex.lock(); + MutexLock lock(mutex); in_queue.push_back(var); - mutex.unlock(); } } } |