lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "robert engels (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-1388) Add init method to CloseableThreadLocal
Date Mon, 15 Sep 2008 22:03:44 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-1388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631157#action_12631157
] 

robert engels commented on LUCENE-1388:
---------------------------------------

The code is incorrect.

It needs to be in the get method, as each thread needs to have initialValue called on the
first get().

> Add init method to CloseableThreadLocal
> ---------------------------------------
>
>                 Key: LUCENE-1388
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1388
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 2.3.2
>            Reporter: Jason Rutherglen
>            Priority: Trivial
>         Attachments: LUCENE-1388.patch, LUCENE-1388.patch
>
>
> Java ThreadLocal has an init method that allows subclasses to easily instantiate an initial
value.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message