tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5 CoyoteRequest.java LocalStrings.properties
Date Fri, 09 Aug 2002 05:22:29 GMT
>   +        // Remove the specified attribute
>   +        synchronized (attributes) {
>   +            // Check for read only attribute
>   +           if (readOnlyAttributes.containsKey(name))
>   +                return;
>   +            found = attributes.containsKey(name);
>   +            if (found) {
>   +                value = attributes.get(name);
>   +                attributes.remove(name);
>   +            } else {
>   +                return;
>   +            }
>   +        }

Requests are per-thread, so the synchronized is unnecessary.


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message