threads: replace magic number id_type with thread_class
This commit is contained in:
@@ -36,6 +36,17 @@ enum class thread_state : u32
|
||||
mask = 3
|
||||
};
|
||||
|
||||
static inline thread_class get_thread_class(u32 thread_id_type)
|
||||
{
|
||||
switch (thread_id_type)
|
||||
{
|
||||
case 1: return thread_class::ppu;
|
||||
case 2: return thread_class::spu;
|
||||
case 0x55: return thread_class::rsx;
|
||||
default: return thread_class::general;
|
||||
}
|
||||
}
|
||||
|
||||
template <class Context>
|
||||
class named_thread;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user