From e1f9046f5ca57f899f12f79adb7e0e09f2ef99e5 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Wed, 13 Dec 2017 20:29:23 -0600 Subject: [PATCH] context handler fix [ROCm/rocprofiler commit: 84644dc732b1dcbf493da9afa22a6235e1f0d3f4] --- projects/rocprofiler/src/core/context.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/rocprofiler/src/core/context.h b/projects/rocprofiler/src/core/context.h index 3fad27437f..d4d2a2e82c 100644 --- a/projects/rocprofiler/src/core/context.h +++ b/projects/rocprofiler/src/core/context.h @@ -370,8 +370,9 @@ class Context { static bool Handler(hsa_signal_value_t value, void* arg) { Group* group = reinterpret_cast(arg); - std::lock_guard lck(group->GetContext()->mutex_); + group->GetContext()->mutex_.lock(); uint32_t r = group->DecrRefs(); + group->GetContext()->mutex_.unlock(); if (r == 0) { group->GetContext()->handler_(group->GetGroup(), group->GetContext()->handler_arg_); }