Implement sceNpSignaling & signaling improvements (#8836)

This commit is contained in:
RipleyTom 2020-09-07 23:50:17 +02:00 committed by GitHub
parent 2f3e0044f1
commit 10820fa135
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 1343 additions and 315 deletions

View file

@ -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;