aboutsummaryrefslogtreecommitdiffhomepage
path: root/tdactor/td/actor/ConcurrentScheduler.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2022-09-14 18:21:41 +0300
committerlevlam <levlam@telegram.org>2022-09-14 18:21:41 +0300
commit7922df1039dfcb23a2b3151633d390323a8f260b (patch)
tree62c3b3ff6b83157e6a80f93cbc99bde86e67f03c /tdactor/td/actor/ConcurrentScheduler.cpp
parente5fbb3355560858516d61058f3e3f6c6a70fd39a (diff)
Explicitly ignore failure to set thread affinity mask.
Diffstat (limited to 'tdactor/td/actor/ConcurrentScheduler.cpp')
-rw-r--r--tdactor/td/actor/ConcurrentScheduler.cpp2
1 files changed, 1 insertions, 1 deletions
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));