Singleton in Action?
Norm
norm.rowtree at gmail.com
Sun Feb 3 02:28:53 UTC 2019
On Saturday, 2 February 2019 at 16:56:45 UTC, Ron Tarrant wrote:
> Hi guys,
>
> I ran into another snag this morning while trying to implement
> a singleton. I found all kinds of examples of singleton
> definitions, but nothing about how to put them into practice.
>
> [...]
If you haven't already been to the d-idioms site it is well worth
a look:
https://p0nce.github.io/d-idioms/
It has a singleton example that you may find useful.
https://p0nce.github.io/d-idioms/#Leveraging-TLS-for-a-fast-thread-safe-singleton
bye,
norm
More information about the Digitalmars-d-learn
mailing list