Fixed some tbb issues (#3735)
This commit is contained in:
parent
72cd81305c
commit
a8daab3377
@ -47,7 +47,7 @@ struct CPUStreamsExecutor::Impl {
|
|||||||
_offset{streamId * threadsPerStream + threadBindingOffset} {
|
_offset{streamId * threadsPerStream + threadBindingOffset} {
|
||||||
}
|
}
|
||||||
void on_scheduler_entry(bool) override {
|
void on_scheduler_entry(bool) override {
|
||||||
PinThreadToVacantCore(_offset + tbb::task_arena::current_thread_index(), _threadBindingStep, _ncpus, _mask);
|
PinThreadToVacantCore(_offset + tbb::this_task_arena::current_thread_index(), _threadBindingStep, _ncpus, _mask);
|
||||||
}
|
}
|
||||||
void on_scheduler_exit(bool) override {
|
void on_scheduler_exit(bool) override {
|
||||||
PinCurrentThreadByMask(_ncpus, _mask);
|
PinCurrentThreadByMask(_ncpus, _mask);
|
||||||
|
Loading…
Reference in New Issue
Block a user