summaryrefslogtreecommitdiffstats
path: root/src/video_core/debug_utils
diff options
context:
space:
mode:
authormailwl <mailwl@gmail.com>2018-06-25 17:01:08 +0200
committermailwl <mailwl@gmail.com>2018-06-25 17:01:08 +0200
commitad39bab2710bd29493ba62aead9e0a72ea1815c4 (patch)
treea23688b4219e98237783db2fc570a726e708a15a /src/video_core/debug_utils
parentRemoved duplicate structs, changed AudioRendererResponse -> UpdateDataHeader (#583) (diff)
downloadyuzu-ad39bab2710bd29493ba62aead9e0a72ea1815c4.tar
yuzu-ad39bab2710bd29493ba62aead9e0a72ea1815c4.tar.gz
yuzu-ad39bab2710bd29493ba62aead9e0a72ea1815c4.tar.bz2
yuzu-ad39bab2710bd29493ba62aead9e0a72ea1815c4.tar.lz
yuzu-ad39bab2710bd29493ba62aead9e0a72ea1815c4.tar.xz
yuzu-ad39bab2710bd29493ba62aead9e0a72ea1815c4.tar.zst
yuzu-ad39bab2710bd29493ba62aead9e0a72ea1815c4.zip
Diffstat (limited to 'src/video_core/debug_utils')
-rw-r--r--src/video_core/debug_utils/debug_utils.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/debug_utils/debug_utils.h b/src/video_core/debug_utils/debug_utils.h
index bbba8e380..9382a75e5 100644
--- a/src/video_core/debug_utils/debug_utils.h
+++ b/src/video_core/debug_utils/debug_utils.h
@@ -55,8 +55,10 @@ public:
virtual ~BreakPointObserver() {
auto context = context_weak.lock();
if (context) {
- std::unique_lock<std::mutex> lock(context->breakpoint_mutex);
- context->breakpoint_observers.remove(this);
+ {
+ std::unique_lock<std::mutex> lock(context->breakpoint_mutex);
+ context->breakpoint_observers.remove(this);
+ }
// If we are the last observer to be destroyed, tell the debugger context that
// it is free to continue. In particular, this is required for a proper yuzu