Implement independent CPU preemptions

This commit is contained in:
Eladash 2022-09-06 18:59:23 +03:00 committed by kd-11
parent b9e20dc5c9
commit ec7b18dab5
12 changed files with 358 additions and 4 deletions

View file

@ -4247,7 +4247,7 @@ s64 spu_thread::get_ch_value(u32 ch)
spu_function_logger logger(*this, "MFC Events read");
state += cpu_flag::wait;
lv2_obj::prepare_for_sleep(*this);
using resrv_ptr = std::add_pointer_t<const decltype(rdata)>;
@ -4943,7 +4943,7 @@ bool spu_thread::stop_and_signal(u32 code)
return ch_in_mbox.set_values(1, CELL_EINVAL), true;
}
state += cpu_flag::wait;
lv2_obj::prepare_for_sleep(*this);
spu_function_logger logger(*this, "sys_spu_thread_receive_event");