News for hackers. Stuff that matters.
Re:Recursive (Re-Entrant) Locks (2013) by bonzini on Saturday February 18, 2023 @07:20AM (#34846351)
The blog post explains why it's the opposite, not using recursive locks kills two birds with a stone because you know which invariants are enforced at locking boundaries. Therefore, functions that take the lock know exactly what invariants to expect, those that are called with the lock taken don't.

It's the opposite of spaghetti code.

There are no comments on this comment yet.