Please sign in to comment.
RAII for QgsCoordinateTransform locking
I experienced a freeze where the main thread was stuck in QgsCoordinateTransformPrivate::freeProj(), waiting for a write lock. None of the other threads had anything useful in their stack trace that would have explained why the lock was not available. The only explanation I can come up with is that an exception or thread termination was messing with the lock, leaving it in a locked state. By using RAII we can avoid this scenario.
- Loading branch information