From 7dd087ebf0383ff85fbd536d8c7c22bb0efc274d Mon Sep 17 00:00:00 2001 From: Evgeny Date: Wed, 16 Jan 2019 19:08:00 -0600 Subject: [PATCH] fix Change-Id: I2c13b9610037baf9e5b0db675bac19426fe8239e --- test/tool/tool.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/tool/tool.cpp b/test/tool/tool.cpp index f189f0546c..14723343c7 100644 --- a/test/tool/tool.cpp +++ b/test/tool/tool.cpp @@ -500,13 +500,13 @@ void dump_context_array(hsa_queue_t* queue) { } } } - - if (pthread_mutex_unlock(&mutex) != 0) { - perror("pthread_mutex_unlock"); - abort(); - } - if (done == false) sched_yield(); } + + if (pthread_mutex_unlock(&mutex) != 0) { + perror("pthread_mutex_unlock"); + abort(); + } + if (done == false) sched_yield(); } }