2012-01-29から1日間の記事一覧
ふと気になったので実験してみた。 Objective-Cの@synchronizedは、つまりはmutexらしい。 Appleのドキュメントに書いてあった。 例えば、 @implementation Singleton @synthesize count; static Singleton* singleton = nil; + (id)sharedObject{ if (!sing…
ふと気になったので実験してみた。 Objective-Cの@synchronizedは、つまりはmutexらしい。 Appleのドキュメントに書いてあった。 例えば、 @implementation Singleton @synthesize count; static Singleton* singleton = nil; + (id)sharedObject{ if (!sing…