From 67aa7082d6fa8453f060143a88384478f5fb9365 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 4 Oct 2022 23:00:02 +0300 Subject: [PATCH] Add thread.get_id() test. --- tdutils/test/port.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tdutils/test/port.cpp b/tdutils/test/port.cpp index b5c90fd75..92b172997 100644 --- a/tdutils/test/port.cpp +++ b/tdutils/test/port.cpp @@ -304,6 +304,8 @@ TEST(Port, ThreadAffinityMask) { auto result = td::thread::set_affinity_mask(thread_id, 1); LOG(INFO) << "Thread " << thread_id << ": " << result << ' ' << td::thread::get_affinity_mask(thread_id); }); + LOG(INFO) << "Will join new thread " << thread.get_id() + << " with affinity mask: " << td::thread::get_affinity_mask(thread.get_id()); } } auto result = td::thread::set_affinity_mask(thread_id, old_mask);