There was an error fetching the commit references. Please try again later.
Kernel: Implemented mutex priority inheritance.
Verified with a hwtest and implemented based on reverse engineering. Thread A's priority will get bumped to the highest priority among all the threads that are waiting for a mutex that A holds. Once A releases the mutex and ownership is transferred to B, A's priority will return to normal and B's priority will be bumped.
Showing
- src/core/hle/kernel/mutex.cpp 31 additions, 8 deletionssrc/core/hle/kernel/mutex.cpp
- src/core/hle/kernel/svc.cpp 9 additions, 0 deletionssrc/core/hle/kernel/svc.cpp
- src/core/hle/kernel/thread.cpp 39 additions, 2 deletionssrc/core/hle/kernel/thread.cpp
- src/core/hle/kernel/thread.h 15 additions, 0 deletionssrc/core/hle/kernel/thread.h
Loading
Please register or sign in to comment