LV2: Implement set-priority thread requeue

This commit is contained in:
Eladash 2023-04-28 20:10:21 +03:00 committed by Ivan
parent 9828e6cafc
commit b861a9c5d0
15 changed files with 143 additions and 39 deletions

View file

@ -6157,11 +6157,13 @@ spu_thread::thread_name_t::operator std::string() const
return full_name;
}
spu_thread::priority_t::operator s32() const
spu_thread::spu_prio_t spu_thread::priority_t::load() const
{
if (_this->get_type() != spu_type::threaded || !_this->group->has_scheduler_context)
{
return s32{smax};
spu_thread::spu_prio_t prio{};
prio.prio = smax;
return prio;
}
return _this->group->prio;