LWP_MutexLock always returns error
Posted: Tue Jun 09, 2020 4:50 pm
I'm trying to port a game that uses SDL to the Wii. Using sdl-wii I managed to port other software (e.g. emulators) without too much trouble. In this case, however, I'm having trouble with mutexes. The implementation of sdl-wii calls LWP_MutexLock to lock a mutex but it always returns an error code (-1). The mutex is initialized previously with LWP_MutexInit, but I don't know if there are other initialization steps that are necessary. I've taken a look at the code for LWP_MutexLock and other mutex operations in libogc but it didn't help me much.
Does anyone have an idea why this is happening? Otherwise, is there any further documentation or examples using threads and mutexes with devkitPPC? Thanks.
Does anyone have an idea why this is happening? Otherwise, is there any further documentation or examples using threads and mutexes with devkitPPC? Thanks.