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_); }