more APIs

This commit is contained in:
InoriRus
2022-06-07 16:19:01 +10:00
parent 877560b7f6
commit 16baf5cc18
26 changed files with 1862 additions and 108 deletions
+14
View File
@@ -2287,6 +2287,13 @@ void KYTY_SYSV_ABI PthreadYield()
sched_yield();
}
int KYTY_SYSV_ABI PthreadGetthreadid()
{
PRINT_NAME();
return Core::Thread::GetThreadIdUnique();
}
int KYTY_SYSV_ABI KernelClockGetres(KernelClockid clock_id, KernelTimespec* tp)
{
PRINT_NAME();
@@ -2592,6 +2599,13 @@ int KYTY_SYSV_ABI pthread_mutex_lock(LibKernel::PthreadMutex* mutex)
return POSIX_PTHREAD_CALL(LibKernel::PthreadMutexLock(mutex));
}
int KYTY_SYSV_ABI pthread_mutex_trylock(LibKernel::PthreadMutex* mutex)
{
// PRINT_NAME();
return POSIX_PTHREAD_CALL(LibKernel::PthreadMutexTrylock(mutex));
}
int KYTY_SYSV_ABI pthread_mutex_unlock(LibKernel::PthreadMutex* mutex)
{
// PRINT_NAME();