hrydgard/ppsspp — pull request #70 by unknownbrackets (2012-11-21 09:12:33+00:00)
Title: Mutexes

Well, there are thread order / priority issues, and restarting issues, but the mutexes themselves actually work. So I think it's time for a pull.

This doesn't really make any games work, although there are less errors on the console. Lunar gets a bit farther, though.

The rescheduling may be too often, but it'll be easier to fix with changes to threading itself which I think are better handled separately.

This does include one other fix, which was messing up my testing: it makes sceKernelStartThread() reschedule right away, so the thread immediately executes. Seems pretty clear that the PSP does this too.

-[Unknown]