osal icon indicating copy to clipboard operation
osal copied to clipboard

fix: hold mutex when signaling cond var

Open elupus opened this issue 8 months ago • 1 comments

If mutex is not held when signalling the condition variable, a thread woken up by the mutex unlock, may have lower priority than the thread waiting on the condition leading to priority inversion.

We also don't need to wake up waiters when we clear events, since this will never trigger return from the wait.

elupus avatar May 08 '25 01:05 elupus

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Sep 23 '25 11:09 CLAassistant