hrydgard/ppsspp — pull request #151 by unknownbrackets (2012-12-09 09:03:22+00:00)
Title: More scheduling fun (callbacks)

So, this includes a couple changes. I could probably break it into three different pulls if you prefer, but they're all pretty related. The changes are:

* Implement the priority attr for mutexes and semaphores.
* Fix the scheduling of callbacks and which threads CB() funcs affect (and make it so less has to be done in each HLE function to do it right.)
* Add new funcs `hleReSchedule()` and `hleCheckAllCallbacks()` etc. for deferred rescheduling.
* Correct some wrappers to return directly that were returning void.

All the games I tested were essentially unaffected by this change. I think it'll affect compatibility later and be hard to debug though.

58744f62789436990c7153c45bcf410e6f1db0e8 felt a bit messy but I couldn't find a better way to do it right. Also I hope b8077e87a36f49e40214b91a85b6d8460df642dc is okay.

I'm still cleaning up some tests for some of these things.

-[Unknown]