Lazy loading reduces memory footprint. Adds thread safety mention.

This commit is contained in:
Wojciech Nagrodzki 2014-05-23 23:18:14 +02:00
parent 1ad5e4abce
commit 134c69a5bc
Signed by: wnagrodzki
GPG key ID: E9D0EB0302264569
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View file

@ -648,7 +648,7 @@ When developing a class or a framework exceptions are thrown to indicate that cl
\subsection{Lazy loading reduces memory footprint}
Creating an object on demand reduces initialization time of containing class.
Creating an object on demand reduces initialisation time of a containing class. The following getter implementation is not thread safe, as two threads might try to initialise \inlinecode{\_cacheDictionary} at the same time.
\begin{codelisting}
- (NSMutableDictionary *)cacheDictionary