uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Swril <lriwsw...@gmail.com>
Subject Re: Threadsafe advice for using SharedResourceObject
Date Wed, 02 Apr 2014 00:49:30 GMT
Richard Eckart de Castilho <rec@...> writes:

> 
> I assume you are talking about runtime, not initialization time.
> 
> At runtime, it is convenient if the shared object has no mutable
> state. If it has, you might want to wrap that in as ThreadLocal
> variable.
> 
> If there is a problem during initialization, that would be a bug
> I suppose.
> 


Thanks for your answers.

Yes I was talking about runtime.
We found that the sharedresource was using instance variable and have changed 
it to local variable. It runs ok now.


Mime
View raw message