one step closer to run games

This commit is contained in:
InoriRus
2022-04-27 18:49:15 +10:00
parent 08b0a87225
commit bc02c0560e
47 changed files with 3020 additions and 1108 deletions
+24
View File
@@ -1774,6 +1774,8 @@ int KYTY_SYSV_ABI PthreadCondSignal(PthreadCond* cond)
{
PRINT_NAME();
EXIT_NOT_IMPLEMENTED(cond == nullptr);
if (cond == nullptr)
{
return KERNEL_ERROR_EINVAL;
@@ -2266,6 +2268,13 @@ int KYTY_SYSV_ABI PthreadGetname(Pthread thread, char* name)
return OK;
}
void KYTY_SYSV_ABI PthreadYield()
{
PRINT_NAME();
sched_yield();
}
int KYTY_SYSV_ABI KernelClockGetres(KernelClockid clock_id, KernelTimespec* tp)
{
PRINT_NAME();
@@ -2535,6 +2544,21 @@ namespace Posix {
LIB_NAME("Posix", "libkernel");
int KYTY_SYSV_ABI pthread_create(LibKernel::Pthread* thread, const LibKernel::PthreadAttr* attr, LibKernel::pthread_entry_func_t entry,
void* arg)
{
PRINT_NAME();
return POSIX_PTHREAD_CALL(LibKernel::PthreadCreate(thread, attr, entry, arg, ""));
}
int KYTY_SYSV_ABI pthread_join(LibKernel::Pthread thread, void** value)
{
PRINT_NAME();
return POSIX_PTHREAD_CALL(LibKernel::PthreadJoin(thread, value));
}
int KYTY_SYSV_ABI pthread_cond_broadcast(LibKernel::PthreadCond* cond)
{
PRINT_NAME();