mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-22 11:56:58 +02:00
Implement POSIX thread stack attribute import through kernel setter
This commit is contained in:
@@ -4208,6 +4208,10 @@ int KYTY_SYSV_ABI pthread_attr_setschedpolicy(LibKernel::PthreadAttr* attr, int
|
||||
return POSIX_PTHREAD_CALL(LibKernel::PthreadAttrSetschedpolicy(attr, policy));
|
||||
}
|
||||
|
||||
int KYTY_SYSV_ABI pthread_attr_setstack(LibKernel::PthreadAttr* attr, void* addr, size_t size) {
|
||||
return POSIX_PTHREAD_CALL(LibKernel::PthreadAttrSetstack(attr, addr, size));
|
||||
}
|
||||
|
||||
int KYTY_SYSV_ABI pthread_attr_setstacksize(LibKernel::PthreadAttr* attr, size_t stack_size) {
|
||||
// PRINT_NAME();
|
||||
|
||||
|
||||
@@ -249,6 +249,7 @@ int KYTY_SYSV_ABI pthread_attr_setinheritsched(LibKernel::PthreadAttr* attr, int
|
||||
int KYTY_SYSV_ABI pthread_attr_setschedparam(LibKernel::PthreadAttr* attr,
|
||||
const LibKernel::KernelSchedParam* param);
|
||||
int KYTY_SYSV_ABI pthread_attr_setschedpolicy(LibKernel::PthreadAttr* attr, int policy);
|
||||
int KYTY_SYSV_ABI pthread_attr_setstack(LibKernel::PthreadAttr* attr, void* addr, size_t size);
|
||||
int KYTY_SYSV_ABI pthread_attr_setstacksize(LibKernel::PthreadAttr* attr, size_t stack_size);
|
||||
int KYTY_SYSV_ABI pthread_cond_broadcast(LibKernel::PthreadCond* cond);
|
||||
int KYTY_SYSV_ABI pthread_cond_signal(LibKernel::PthreadCond* cond);
|
||||
|
||||
@@ -2189,6 +2189,7 @@ LIB_DEFINE(InitLibKernel_1_Posix) {
|
||||
LIB_FUNC("wtkt-teR1so", Posix::pthread_attr_init);
|
||||
LIB_FUNC("zHchY8ft5pk", Posix::pthread_attr_destroy);
|
||||
LIB_FUNC("vQm4fDEsWi8", Posix::pthread_attr_getstack);
|
||||
LIB_FUNC("-SrbXpGR1f0", Posix::pthread_attr_setstack);
|
||||
LIB_FUNC("2Q0z6rnBrTE", Posix::pthread_attr_setstacksize);
|
||||
LIB_FUNC("Ucsu-OK+els", Posix::pthread_attr_get_np);
|
||||
LIB_FUNC("RtLRV-pBTTY", Posix::pthread_attr_getschedpolicy);
|
||||
|
||||
Reference in New Issue
Block a user