> Otherwise you can get:
> 
>  public void addMyListener( MyListener listener )
>  {
>      synchronized( m_Listeners )
>      {
>          ArrayList clone = (ArrayList) m_Listeners.clone();
>          m_Listeners = clone;
>          clone.add( listener );
>      }
>  }
> 
> Due to out-of-order-execution.
> 
> util.concurrent has a CopyOnWriteArrayList, BTW, so
> there's no need to implement this yourself...
> 
> /LS

java.util.concurrent is in 1.5
a LOT of concurrency improvements are in 1.5

Unfortunately, I am stuck using 1.3 for the time being.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to