>> BTW thought I saw a couple trivial threading issues in the loaders, too.

> Like? I thought that these things have been pretty well designed.
> -jon

Like this snipet from ScreenLoader is not thread safe, fer instance:

    public Screen getInstance (String name)
        throws Exception
    {
        Screen screen = null;
        try
        {
            if (  cache() && this.containsKey ( name ) )
            {
                screen = ( Screen ) this.get ( name );
            }
            else

ScreenLoader is a GenericLoader is a Hashtable.  Screen loader should
probably sync on *this* or just have synced methods to protect its cache.
This is something of a trivial example because it's not clear if threading
problems could ever cause a noticeable bug here.  But when I see this type
of stuff a always go looking for other problems in similar modules.

I can go through it and submit some patches for the current code or wait for
Leon, et al's changes...?

PaulO.






------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to