From 84644dc732b1dcbf493da9afa22a6235e1f0d3f4 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Wed, 13 Dec 2017 20:29:23 -0600 Subject: [PATCH] context handler fix --- src/core/context.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/context.h b/src/core/context.h index 3fad27437f..d4d2a2e82c 100644 --- a/src/core/context.h +++ b/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_); }