scePthreadSetprio, scePthreadGetprio
This commit is contained in:
parent
e22ad65e70
commit
bdcadf63d2
|
@ -1289,6 +1289,15 @@ int PS4_SYSV_ABI scePthreadGetthreadid() {
|
||||||
return (int)(size_t)g_pthread_self;
|
return (int)(size_t)g_pthread_self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int PS4_SYSV_ABI scePthreadGetprio(ScePthread thread, int* prio) {
|
||||||
|
*prio = thread->prio;
|
||||||
|
return ORBIS_OK;
|
||||||
|
}
|
||||||
|
int PS4_SYSV_ABI scePthreadSetprio(ScePthread thread, int prio) {
|
||||||
|
thread->prio = prio;
|
||||||
|
return ORBIS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
void pthreadSymbolsRegister(Core::Loader::SymbolsResolver* sym) {
|
void pthreadSymbolsRegister(Core::Loader::SymbolsResolver* sym) {
|
||||||
LIB_FUNCTION("lZzFeSxPl08", "libScePosix", 1, "libkernel", 1, 1, posix_pthread_setcancelstate);
|
LIB_FUNCTION("lZzFeSxPl08", "libScePosix", 1, "libkernel", 1, 1, posix_pthread_setcancelstate);
|
||||||
LIB_FUNCTION("0TyVk4MSLt0", "libScePosix", 1, "libkernel", 1, 1, posix_pthread_cond_init);
|
LIB_FUNCTION("0TyVk4MSLt0", "libScePosix", 1, "libkernel", 1, 1, posix_pthread_cond_init);
|
||||||
|
@ -1310,6 +1319,8 @@ void pthreadSymbolsRegister(Core::Loader::SymbolsResolver* sym) {
|
||||||
LIB_FUNCTION("7Xl257M4VNI", "libScePosix", 1, "libkernel", 1, 1, posix_pthread_equal);
|
LIB_FUNCTION("7Xl257M4VNI", "libScePosix", 1, "libkernel", 1, 1, posix_pthread_equal);
|
||||||
LIB_FUNCTION("h9CcP3J0oVM", "libScePosix", 1, "libkernel", 1, 1, posix_pthread_join);
|
LIB_FUNCTION("h9CcP3J0oVM", "libScePosix", 1, "libkernel", 1, 1, posix_pthread_join);
|
||||||
LIB_FUNCTION("EI-5-jlq2dE", "libkernel", 1, "libkernel", 1, 1, scePthreadGetthreadid);
|
LIB_FUNCTION("EI-5-jlq2dE", "libkernel", 1, "libkernel", 1, 1, scePthreadGetthreadid);
|
||||||
|
LIB_FUNCTION("1tKyG7RlMJo", "libkernel", 1, "libkernel", 1, 1, scePthreadGetprio);
|
||||||
|
LIB_FUNCTION("W0Hpm2X0uPE", "libkernel", 1, "libkernel", 1, 1, scePthreadSetprio);
|
||||||
|
|
||||||
LIB_FUNCTION("aI+OeCz8xrQ", "libkernel", 1, "libkernel", 1, 1, scePthreadSelf);
|
LIB_FUNCTION("aI+OeCz8xrQ", "libkernel", 1, "libkernel", 1, 1, scePthreadSelf);
|
||||||
LIB_FUNCTION("EotR8a3ASf4", "libkernel", 1, "libkernel", 1, 1, posix_pthread_self);
|
LIB_FUNCTION("EotR8a3ASf4", "libkernel", 1, "libkernel", 1, 1, posix_pthread_self);
|
||||||
|
|
|
@ -58,6 +58,7 @@ struct PthreadInternal {
|
||||||
std::atomic_bool is_free;
|
std::atomic_bool is_free;
|
||||||
using Destructor = std::pair<OrbisPthreadKey, PthreadKeyDestructor>;
|
using Destructor = std::pair<OrbisPthreadKey, PthreadKeyDestructor>;
|
||||||
std::vector<Destructor> key_destructors;
|
std::vector<Destructor> key_destructors;
|
||||||
|
int prio;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct PthreadAttrInternal {
|
struct PthreadAttrInternal {
|
||||||
|
|
Loading…
Reference in New Issue