--- Dan Wolfe <[EMAIL PROTECTED]> wrote:
> Ian,
> 
> Thanks for the response and the reference.  I've
> reviewed the code and 
> it looks like a workable solution.  One concerned
> that I have though, 
> is that it doesn't appear that the class handles
> threading.
> 
> Did you put a lock around the access to the shared
> dictionary? Or is it 
> not necessary?
> 
> - Dan
> 

I have had no problems using the class and the
multiple instances of the class without any locks
(mutexes) guarding the class structure itself.

However, for the data, you definitely need to use
mutexes.

I implemented finer control by locking around the
separate data objects within the class dictionary
rather than the entire class dictionary. That way
there would be less contention, and thus less delay,
within the system.

I hope that answers your question.

Ian

__________________________________________________
Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
http://dir.remember.yahoo.com/tribute


-------------------------------------------------------
In remembrance
www.osdn.com/911/
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to