Hacker News new | ask | show | jobs
by chrisdevereux 4452 days ago
Yes. In general, either GCD or lower level atomic ops are a better choice for thread-safety than @synchronized blocks. Just pointing out that there are reasons other than global mutable state for wanting a critical section in a class method.