Implement sceNpSignaling & signaling improvements (#8836)
This commit is contained in:
@@ -40,6 +40,8 @@ enum class thread_state : u32
|
||||
finished // Final state, always set at the end of thread execution
|
||||
};
|
||||
|
||||
class need_wakeup {};
|
||||
|
||||
template <class Context>
|
||||
class named_thread;
|
||||
|
||||
@@ -414,6 +416,11 @@ public:
|
||||
{
|
||||
thread::notify_abort();
|
||||
}
|
||||
|
||||
if constexpr (std::is_base_of_v<need_wakeup, Context>)
|
||||
{
|
||||
this->wake_up();
|
||||
}
|
||||
}
|
||||
|
||||
return *this;
|
||||
|
||||
Reference in New Issue
Block a user