diff options
| author | levlam <levlam@telegram.org> | 2022-09-14 18:21:41 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2022-09-14 18:21:41 +0300 |
| commit | 7922df1039dfcb23a2b3151633d390323a8f260b (patch) | |
| tree | 62c3b3ff6b83157e6a80f93cbc99bde86e67f03c /tdactor | |
| parent | e5fbb3355560858516d61058f3e3f6c6a70fd39a (diff) | |
Explicitly ignore failure to set thread affinity mask.
Diffstat (limited to 'tdactor')
| -rw-r--r-- | tdactor/td/actor/ConcurrentScheduler.cpp | 2 |
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)); |
