mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-03 07:36:20 +00:00
scePthreadAttrSetaffinity implementation
This commit is contained in:
parent
704e5183d1
commit
d0f427721c
1 changed files with 3 additions and 7 deletions
|
@ -282,12 +282,7 @@ int PS4_SYSV_ABI scePthreadAttrGetaffinity(PthreadAttrT* param_1, Cpuset* mask)
|
||||||
}
|
}
|
||||||
|
|
||||||
int PS4_SYSV_ABI scePthreadAttrSetaffinity(PthreadAttrT* attr, const Cpuset mask) {
|
int PS4_SYSV_ABI scePthreadAttrSetaffinity(PthreadAttrT* attr, const Cpuset mask) {
|
||||||
if (attr == nullptr) {
|
return posix_pthread_attr_setaffinity_np(attr, 0x10, &mask);
|
||||||
return ORBIS_KERNEL_ERROR_EINVAL;
|
|
||||||
}
|
|
||||||
|
|
||||||
// posix_pthread_attr_setaffinity_np(attr, 0x10, &mask);
|
|
||||||
return ORBIS_OK;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void RegisterThreadAttr(Core::Loader::SymbolsResolver* sym) {
|
void RegisterThreadAttr(Core::Loader::SymbolsResolver* sym) {
|
||||||
|
@ -343,7 +338,8 @@ void RegisterThreadAttr(Core::Loader::SymbolsResolver* sym) {
|
||||||
ORBIS(posix_pthread_attr_setguardsize));
|
ORBIS(posix_pthread_attr_setguardsize));
|
||||||
LIB_FUNCTION("8+s5BzZjxSg", "libkernel", 1, "libkernel", 1, 1,
|
LIB_FUNCTION("8+s5BzZjxSg", "libkernel", 1, "libkernel", 1, 1,
|
||||||
ORBIS(scePthreadAttrGetaffinity));
|
ORBIS(scePthreadAttrGetaffinity));
|
||||||
LIB_FUNCTION("3qxgM4ezETA", "libkernel", 1, "libkernel", 1, 1, scePthreadAttrSetaffinity);
|
LIB_FUNCTION("3qxgM4ezETA", "libkernel", 1, "libkernel", 1, 1,
|
||||||
|
ORBIS(scePthreadAttrSetaffinity));
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Libraries::Kernel
|
} // namespace Libraries::Kernel
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue