Posts

CreationalPatterns

The Singleton: The Alternatives Monostate Pattern and Dependency Injection

/
So far, I have discussed in my previous posts the Singleton Pattern, and its pros and cons. One question…
CreationalPatterns

The Singleton: Pros and Cons

/
I introduced in my last post "The Singleton", the classical Singleton and the so-called Meyers Singleton.…
CreationalPatterns

The Singleton

/
The most controversial Design Pattern from the book  "Design Patterns: Elements of Reusable Object-Oriented…
gcc

Thread-Safe Initialization of a Singleton

/
There are a lot of issues with the singleton pattern. I'm aware of that. But the singleton pattern is…
callOnce

Thread-Safe Initialization of Data

/
The story is simple if the data is not modified when shared between threads. The data has only to be…