In Swift, why is initialization of lazy static variables thread-safe? How is it implemented?
How does swift implement thread safety of lazy static variable allocation/evaluation? Is there some global lock for all static variable access that all calls go through?