mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-25 20:36:54 +01:00
refactor(subsystems&ime): RAII lifecycle
This commit is contained in:
@@ -1124,7 +1124,7 @@ void* PthreadCreateMainGuestStack() {
|
||||
return stack_top;
|
||||
}
|
||||
|
||||
KYTY_SUBSYSTEM_INIT(Pthread) {
|
||||
void Initialize() {
|
||||
PRINT_NAME_ENABLE(false);
|
||||
|
||||
EXIT_IF(g_pthread_context != nullptr);
|
||||
@@ -1157,10 +1157,6 @@ KYTY_SUBSYSTEM_INIT(Pthread) {
|
||||
thread.Detach();
|
||||
}
|
||||
|
||||
KYTY_SUBSYSTEM_UNEXPECTED_SHUTDOWN(Pthread) {}
|
||||
|
||||
KYTY_SUBSYSTEM_DESTROY(Pthread) {}
|
||||
|
||||
static int PthreadAttrCopy(PthreadAttr* dst, const PthreadAttr* src) {
|
||||
if (dst == nullptr || *dst == nullptr || src == nullptr || *src == nullptr) {
|
||||
return KERNEL_ERROR_EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user