Re: svn commit: r1166165 - in /jakarta/jmeter/trunk: src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java xdocs/changes.xml

Milamber <[email protected]> Wed, 7 Sep 2011 13:51:31 +0000
Newsgroups gmane.comp.jakarta.cactus.devel
Message-ID <CAFkCsKPa+LaNFUZBF-LuWjWHmCXyZgjQsXaPJJYW8WZW3c=PSA@mail.gmail.com>
On Wed, Sep 7, 2011 at 1:35 PM, sebb <[email protected]> wrote:

> On 7 September 2011 14:20,  <[email protected]> wrote:
> [snip]
>
> -    private transient ThreadLocal<Map<String, CacheEntry>> threadCache;
> > +    private transient InheritableThreadLocal<Map<String, CacheEntry>>
> threadCache;
>
> Neat fix!
>

Thanks.
2-3 modified lines, but some hours last sunday to find a elegant way to
correcting this without success.
Finally, today I googling, and I discovered this thread:
http://stackoverflow.com/questions/7259906/propagating-threadlocal-to-a-new-thread-fetched-from-a-executorservice
(I didn't know this InheritableThreadLocal class before today)



>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>