mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 06:21:26 +12:00
Fix wrong comments in CPUThread.h
It's not an upcast.
This commit is contained in:
parent
2275259bf5
commit
c7c12941bc
2 changed files with 2 additions and 2 deletions
|
@ -296,6 +296,7 @@ bool cpu_thread::check_state() noexcept
|
||||||
|
|
||||||
void cpu_thread::notify()
|
void cpu_thread::notify()
|
||||||
{
|
{
|
||||||
|
// Downcast to correct type
|
||||||
if (id_type() == 1)
|
if (id_type() == 1)
|
||||||
{
|
{
|
||||||
thread_ctrl::notify(*static_cast<named_thread<ppu_thread>*>(this));
|
thread_ctrl::notify(*static_cast<named_thread<ppu_thread>*>(this));
|
||||||
|
@ -312,6 +313,7 @@ void cpu_thread::notify()
|
||||||
|
|
||||||
void cpu_thread::abort()
|
void cpu_thread::abort()
|
||||||
{
|
{
|
||||||
|
// Downcast to correct type
|
||||||
if (id_type() == 1)
|
if (id_type() == 1)
|
||||||
{
|
{
|
||||||
*static_cast<named_thread<ppu_thread>*>(this) = thread_state::aborting;
|
*static_cast<named_thread<ppu_thread>*>(this) = thread_state::aborting;
|
||||||
|
|
|
@ -78,11 +78,9 @@ public:
|
||||||
return id >> 24;
|
return id >> 24;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Upcast and notify
|
|
||||||
void notify();
|
void notify();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Upcast and abort
|
|
||||||
void abort();
|
void abort();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue