[DevkitARM] newlib and locking
Homebrew toolchains for wii, gamecube, 3ds, ds, gba, gp32 and psp
Brought to you by:
wntrmute
It is possible "__syscalls_t" to expand with the following functions (like devkitPPC)
int (lock_init) (int lock,int recursive);
int (lock_close) (int lock);
int (lock_release) (int lock);
int (lock_acquire) (int lock);
void (malloc_lock) (struct _reent ptr);
void (malloc_unlock) (struct _reent ptr);
This gives an external multithreading-library a chance to support this locking stuff
The malloc_lock stuff can be easy overwritten with own functions (malloc_lock & malloc_unlock). Because newlib calls real functions.
But the other lockings can ba not overwritten, because sys/lock.h contains only dummy macros
This eventually happened with devkitARM r45