refactor(util/task): remove switch to disable priority inversion
This commit is contained in:
parent
26ba9c23a7
commit
45820531c4
3 changed files with 1 additions and 9 deletions
|
|
@ -215,12 +215,11 @@ bool mt_task_queue::check_deps(gtask const & t) {
|
|||
get_data(t)->m_imp->get_dependencies(deps);
|
||||
} catch (...) {}
|
||||
|
||||
auto do_prio_inv = get_data(t)->m_flags.m_do_priority_inversion;
|
||||
auto prio = get_prio(t);
|
||||
for (auto & dep : deps) {
|
||||
if (dep) {
|
||||
submit_core(dep, prio);
|
||||
if (do_prio_inv) bump_prio(dep, prio);
|
||||
bump_prio(dep, prio);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ struct scheduling_info {
|
|||
};
|
||||
|
||||
struct task_flags {
|
||||
bool m_do_priority_inversion = true;
|
||||
bool m_needs_separate_thread = true;
|
||||
bool m_eager_execution = false;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -68,12 +68,6 @@ public:
|
|||
m_imp(new base_task_imp<Fn>(std::forward<Fn>(fn))),
|
||||
m_cancel_tok(global_cancellation_token()) {}
|
||||
|
||||
task_builder<Res> disable_priority_inversion() {
|
||||
lean_assert(m_imp);
|
||||
m_flags.m_do_priority_inversion = false;
|
||||
return std::move(*this);
|
||||
}
|
||||
|
||||
task_builder<Res> does_not_require_own_thread() {
|
||||
lean_assert(m_imp);
|
||||
m_flags.m_needs_separate_thread = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue