Explicitly ignore failure to set thread affinity mask.

This commit is contained in:
levlam 2022-09-14 18:21:41 +03:00
parent e5fbb33555
commit 7922df1039

View File

@ -81,7 +81,7 @@ void ConcurrentScheduler::start() {
detail::Iocp::Guard iocp_guard(iocp_.get()); detail::Iocp::Guard iocp_guard(iocp_.get());
#endif #endif
if (thread_affinity_mask != 0) { 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()) { while (!is_finished()) {
sched->run(Timestamp::in(10)); sched->run(Timestamp::in(10));