citra-emu/citra — pull request #256 by Subv (2014-12-06 05:04:41+00:00)
Title: Kernel/Mutex: Properly lock the mutex when a thread enters it

Also resume only the next immediate thread waiting for the mutex when it is released, instead of resuming them all.