Explicitly ignore failure to set thread affinity mask.
This commit is contained in:
parent
e5fbb33555
commit
7922df1039
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user