From 6699f74f04f350ecc1598f543096ff8903923693 Mon Sep 17 00:00:00 2001 From: eggfly Date: Thu, 22 Jul 2021 22:51:02 +0800 Subject: [PATCH] Fix wrong thread name in thread_checker (#27545) --- fml/memory/thread_checker.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fml/memory/thread_checker.h b/fml/memory/thread_checker.h index 5290fc2ba8115..3de97f2d2188d 100644 --- a/fml/memory/thread_checker.h +++ b/fml/memory/thread_checker.h @@ -57,7 +57,7 @@ class ThreadChecker final { char actual_thread[buffer_length]; if (0 == pthread_getname_np(current_thread, actual_thread, buffer_length) && - 0 == pthread_getname_np(self_, actual_thread, buffer_length)) { + 0 == pthread_getname_np(self_, expected_thread, buffer_length)) { FML_DLOG(ERROR) << "IsCreationThreadCurrent expected thread: '" << expected_thread << "' actual thread:'" << actual_thread << "'";