3 ms·
> ... use a re-entrant mutex when it was acquired from the pool ... normal mutex we would be fine, we unlock it on a thread other than the one we locked it from
by alexeiz 8y ago
> ... use a re-entrant mutex when it was acquired from the pool ... normal mutex we would be fine, we unlock it on a thread other than the one we locked it from ... re-entrant mutex remembers which thread it was locked from, we need to keep the resource on the same thread
Sounds like a "bad coders" problem to me! This design is so screwed up that no tool or smart compiler can save you from problems here.