mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 14:42:38 +01:00
24 lines
307 B
C
24 lines
307 B
C
|
#include "wut_newlib.h"
|
||
|
|
||
|
#include <coreinit/mutex.h>
|
||
|
|
||
|
static OSMutex sMallocMutex;
|
||
|
|
||
|
void
|
||
|
__wut_malloc_lock(struct _reent *r)
|
||
|
{
|
||
|
OSLockMutex(&sMallocMutex);
|
||
|
}
|
||
|
|
||
|
void
|
||
|
__wut_malloc_unlock(struct _reent *r)
|
||
|
{
|
||
|
OSUnlockMutex(&sMallocMutex);
|
||
|
}
|
||
|
|
||
|
void
|
||
|
__init_wut_malloc_lock()
|
||
|
{
|
||
|
OSInitMutex(&sMallocMutex);
|
||
|
}
|