SPU/event queue: Implement protocol for SPU queue

This commit is contained in:
Eladash 2021-08-13 06:38:53 +03:00 committed by Ivan
parent f1f93b8f81
commit 063df64108
3 changed files with 19 additions and 4 deletions

View file

@ -4835,6 +4835,16 @@ spu_thread::thread_name_t::operator std::string() const
return full_name;
}
spu_thread::priority_t::operator s32() const
{
if (_this->get_type() != spu_type::threaded || !_this->group->has_scheduler_context)
{
return s32{smax};
}
return _this->group->prio;
}
template <>
void fmt_class_string<spu_channel>::format(std::string& out, u64 arg)
{