mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-30 12:25:49 +00:00
The SCE name moves from a libkernel_sys stub to libkernel. Kinds MutexType::ErrorCheck (1) to MutexType::Adaptive (4) are the mutex types FreeBSD 11 libthr's pthread_mutexattr_setkind_np stores, and are set through scePthreadMutexattrSettype, which maps the same values onto those types. Other kinds and a null or uninitialized attribute throw, as their console answer is not known. guest_kernel_sys_pthread_np_kind round-trips kinds 2, 3, 4 and 1 through pthread_mutexattr_gettype, checks that kind 1 makes a second lock return EDEADLK and kind 2 lets it succeed, and checks the throws for kinds 0, 5 and -1 (the type unchanged) and for a destroyed or null attribute.