From 7922df1039dfcb23a2b3151633d390323a8f260b Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 14 Sep 2022 18:21:41 +0300 Subject: [PATCH] Explicitly ignore failure to set thread affinity mask. --- tdactor/td/actor/ConcurrentScheduler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tdactor/td/actor/ConcurrentScheduler.cpp b/tdactor/td/actor/ConcurrentScheduler.cpp index f5ffe10a2..bbfaba362 100644 --- a/tdactor/td/actor/ConcurrentScheduler.cpp +++ b/tdactor/td/actor/ConcurrentScheduler.cpp @@ -81,7 +81,7 @@ void ConcurrentScheduler::start() { detail::Iocp::Guard iocp_guard(iocp_.get()); #endif if (thread_affinity_mask != 0) { - thread::set_affinity_mask(this_thread::get_id(), thread_affinity_mask); + thread::set_affinity_mask(this_thread::get_id(), thread_affinity_mask).ignore(); } while (!is_finished()) { sched->run(Timestamp::in(10));