mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-30 01:01:21 +00:00
kernel: destroy untouched static rwlocks without allocation
This commit is contained in:
1 parent
97bef2992f
commit
4592e4c178
2 files changed
+16
-1
No files matched your search
@@ -2277,7 +2277,10 @@ int KYTY_SYSV_ABI PthreadRwlockDestroy(PthreadRwlock* rwlock) {
|
||||
return KERNEL_ERROR_EINVAL;
|
||||
}
|
||||
|
||||
EXIT_NOT_IMPLEMENTED(*rwlock == nullptr);
|
||||
// SCE_PTHREAD_RWLOCK_INITIALIZER has no allocated resources until first use.
|
||||
if (*rwlock == nullptr) {
|
||||
return OK;
|
||||
}
|
||||
|
||||
{
|
||||
std::lock_guard lock((*rwlock)->m);
|
||||
|
||||
Reference in new issue
Block a user