axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Unai Uribarri (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Updated: (AXISCPP-345) Server thread locks when fails to load the service shared library
Date Thu, 30 Dec 2004 11:50:12 GMT
     [ http://nagoya.apache.org/jira/browse/AXISCPP-345?page=history ]

Unai Uribarri updated AXISCPP-345:
----------------------------------

    Attachment: SharedObjectLocking.diff

Instead of just solve this particular locking bug, I've reworked the SharedObject framework
to use the Scoped Locking pattern.
To lock an object, just creates a <Lock> object passing a pointer to the object to lock.
The lock is released automatically at lock destruction or manually calling the unlock method.
This way, the code is more simple and the locks are always unlocked when a exception is raised
(don't forget that any allocation, such as the push_back method of the containers, can raise
an exception).

What do you think of this change?


> Server thread locks when fails to load the service shared library
> -----------------------------------------------------------------
>
>          Key: AXISCPP-345
>          URL: http://nagoya.apache.org/jira/browse/AXISCPP-345
>      Project: Axis-C++
>         Type: Bug
>  Environment: RedHat 9
>     Reporter: Unai Uribarri
>  Attachments: SharedObjectLocking.diff
>
> When HandlerLoader can't load a library, it raises an exception and several locks are
left in held state.
> Following request hangups forever.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message