From 7f00b9758657ff9558b33b9d36eff1cda32975b6 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Sun, 18 Apr 2021 18:20:09 +0100 Subject: [PATCH] Name Coroutine's in TSAN to make them identifiable --- include/tool/coroutine.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/tool/coroutine.h b/include/tool/coroutine.h index f000482bf0..142a63799f 100644 --- a/include/tool/coroutine.h +++ b/include/tool/coroutine.h @@ -393,6 +393,8 @@ private: // Create a new fiber to go with the new context m_callee.tsan_fiber = __tsan_create_fiber( 0 ); m_callee.own_tsan_fiber = true; + + __tsan_set_fiber_name( m_callee.tsan_fiber, "Coroutine fiber" ); #endif wxLogTrace( kicadTraceCoroutineStack, "COROUTINE::doCall" );