
Why isn't ICollectionOnSTLImpl thread-safe?
From a casual examination of the source code for ICollectionOnSTLImpl
(and seeing what others have said on this subject), it appears that
this class isn't thread-safe in its use of the STL collection member
variable m_coll.
Is there a reason that this class doesn't apply locks around the
operations on the m_coll member variable?
Is the reason perhaps that the class is only useful in implementing
enumeration, and those objects should really only ever be defined as
CComSingleThreadModel?
Dave Lowndes
--
MVP VC++ FAQ: http://www.*-*-*.com/
My address is altered to discourage junk mail.
Please post responses to the newsgroup thread,
there's no need for follow-up email copies.