N
news.microsoft.com
Normally for using collections one uses the provided .SynRoot property thats
there for that task. If you look at the examples for IEnumerable on
collecitons thats what it uses. collectionObj.SynRoot
Still, I like to keep locks to a minimum and I dont see a need for a lock
there on an already synchronized object so AutoResetEvents seemed to me to
be more appropriate.
Being a win32 coder , AutoResetEvents makes more sense to me as you point
out.
there for that task. If you look at the examples for IEnumerable on
collecitons thats what it uses. collectionObj.SynRoot
Still, I like to keep locks to a minimum and I dont see a need for a lock
there on an already synchronized object so AutoResetEvents seemed to me to
be more appropriate.
Being a win32 coder , AutoResetEvents makes more sense to me as you point
out.