7 ms·
I’ve seen singleton mis-implemented as well. For example, multithreaded implementations that can actually can make multiple instances depending on timing due to
by addsubtract 4y ago
I’ve seen singleton mis-implemented as well. For example, multithreaded implementations that can actually can make multiple instances depending on timing due to the constructor/initialization not being thread-safe.
- emodendroket 4y agoThat's a problem but more languages are introducing features to their STL that make it pretty much idiot-proof.