
23 Apr
2007
23 Apr
'07
4:31 p.m.
Clark Sims ??:
http://acumenconsultinginc.net/TechNotes/ThreadSafe/
I used the boost scoped_lock, and shared_ptr classes, to create 2 template classes which provide threadsafe access to a singleton class.
I also included the example of a singleton class which has a destructor.
--------------------------------- Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
I think singleton is a bad thing. we should avoid any non-const global or static variant, especially using them concurrently.