
16 May
2005
16 May
'05
6:57 p.m.
Gennadiy Rozental wrote:
Author does admit that multithreading issues were not considered. IMO any singleton design that doesn't cover MT couldn't be accepted as generic.
Not every library in Boost is MT safe even when it could be useful. MT was left into next stage.
You could not leave MT for the next stage of singleton design. Singletons have a long history dealing with MT issues topped with DL idiom.
I agree with Gennadiy (in case he's right; I haven't looked at the implementation). A Singleton without careful design for MT is IMHO unacceptable, no matter how carefully designed it is in any other dimension. Singleton is a shared object, and it must address MT issues first and foremost. Andrei