synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen" <andreas.veit...@gmail.com>
Subject Re: Enhancements to the JMS transport
Date Sun, 23 Nov 2008 19:17:50 GMT
> The issue I see is with my dual core, where a thread updating the latch is
> not seen from another thread. The concurrency of 4 is reached if you put a
> sout, but the latch update is not visible to the main thread. This is due to
> the Java memory model AFAIK

This would mean that either CountDownLatch is not used correctly in
MinConcurrencyTest or that there is a bug in CountDownLatch, which is
very improbable. Can you exclude the possibility that
concurrencyReachedLatch.await simply times out too early?

Andreas

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


Mime
View raw message