Even if you prefer to use a lock
(after all, they are much easier to program),
you can borrow some lock-free techniques.
For example, consider this:
There are some concerns here.
First of all, there's the lock hierarchy issue:
If reticulating a spline takes the geometry lock,
that may violate our lock hierarchy.
If the lock is a hot ...