ObjectiveC:Synchronized How to use What is @synchronized directive in Objective C? +(id)getSingletonInstance { @synchronized(self) { if (singletonObj == nil) { singletonObj = [[self alloc] init]; } return singletonObj; } } See also Objective-C 이 문서를 가리키는 문서 Objective-C lastmod 2018-10-12created 2018-10-12author Zer0 sitemap