I've read the documentation about priority inversion in win32. It seems that the operating system's scheduler handles this case by boosting a waiting thread's priority randomly.
Does that mean that there is no deterministic way to know if a mutex will have priority inheritance during a given critical section? Is there a way to implement it?
I've checked some ways to set thread priority but it should be a property of the mutex, not of the thread that holds it.
Thanks for answering