Created
November 13, 2012 11:02
-
-
Save tamaki-shingo/4065221 to your computer and use it in GitHub Desktop.
dispatch_once関数を使ったSingletonパターンの実装(dispatch_onceの入力でsnippet出る)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static dispatch_once_t onceToken; | |
dispatch_once(&onceToken, ^{ | |
<#code to be executed once#> | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment