mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 19:41:52 +01:00
39 lines
494 B
C++
39 lines
494 B
C++
|
#include "wut_gthread.h"
|
||
|
|
||
|
int
|
||
|
__wut_recursive_mutex_init_function(OSMutex *mutex)
|
||
|
{
|
||
|
OSInitMutex(mutex);
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
int
|
||
|
__wut_recursive_mutex_lock(OSMutex *mutex)
|
||
|
{
|
||
|
OSLockMutex(mutex);
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
int
|
||
|
__wut_recursive_mutex_trylock(OSMutex *mutex)
|
||
|
{
|
||
|
if (!OSTryLockMutex(mutex)) {
|
||
|
return -1;
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
int
|
||
|
__wut_recursive_mutex_unlock(OSMutex *mutex)
|
||
|
{
|
||
|
OSUnlockMutex(mutex);
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
int
|
||
|
__wut_recursive_mutex_destroy(OSMutex *mutex)
|
||
|
{
|
||
|
return 0;
|
||
|
}
|