some adjustments
This commit is contained in:
parent
7e6c741ed7
commit
e8c425850e
|
@ -20,7 +20,7 @@ void init_pthreads() {
|
|||
g_pthread_cxt->setDefaultMutexattr(default_mutexattr);
|
||||
}
|
||||
|
||||
void Pthread_Init_Self_MainThread() {
|
||||
void pthreadInitSelfMainThread() {
|
||||
scePthreadAttrInit(&g_pthread_self.attr);
|
||||
g_pthread_self.pth = pthread_self();
|
||||
g_pthread_self.name = "Main_Thread";
|
||||
|
@ -158,7 +158,7 @@ void* createMutex(void* addr) {
|
|||
}
|
||||
auto vaddr = reinterpret_cast<u64>(addr);
|
||||
|
||||
std::string name = fmt::format("mutex{:#x}",vaddr);
|
||||
std::string name = fmt::format("mutex{:#}",vaddr);
|
||||
scePthreadMutexInit(static_cast<ScePthreadMutex*>(addr), nullptr, name.c_str());
|
||||
return addr;
|
||||
}
|
||||
|
|
|
@ -59,8 +59,9 @@ class PThreadCxt {
|
|||
private:
|
||||
ScePthreadMutexattr m_default_mutexattr = nullptr;
|
||||
};
|
||||
|
||||
void init_pthreads();
|
||||
void Pthread_Init_Self_MainThread();
|
||||
void pthreadInitSelfMainThread();
|
||||
|
||||
int PS4_SYSV_ABI scePthreadAttrInit(ScePthreadAttr* attr);
|
||||
int PS4_SYSV_ABI scePthreadAttrSetdetachstate(ScePthreadAttr* attr, int detachstate);
|
||||
|
|
Loading…
Reference in New Issue