Closed ivacf closed 10 years ago
I did spot this after I talk to you: http://possiblelossofprecision.net/?p=813
If you wrap the Set creation in Collections.synchronizedSet( ... )
then you might not need to block on the entire function.
It's only a really minor point though because there's are big or often used methods.
Yeah I saw it too but I wasn't sure that would work .I guess it's not a really big difference and most of the time Pig wil be used form the main thread.
ConcurrentHashMap
instead ofHashMap
synchronized
toaddListener
andremoveListener
methods because they use aHashSet
that is not thread safe.