mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-05 07:15:39 +02:00
[285151] [dstore] Potential threading problem in DataStore (open call)
This commit is contained in:
parent
eb8070d673
commit
ac7253e1b6
1 changed files with 8 additions and 4 deletions
|
@ -28,6 +28,7 @@
|
|||
* Noriaki Takatsu (IBM) - [245069] [dstore] dstoreTrace has no timestamp
|
||||
* David McKnight (IBM) - [282634] [dstore] IndexOutOfBoundsException on Disconnect
|
||||
* David McKnight (IBM) - [282599] [dstore] log folder that is not a hidden one
|
||||
* David McKnight (IBM) - [285151] [dstore] Potential threading problem in DataStore (open call)
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.dstore.core.model;
|
||||
|
@ -2156,11 +2157,14 @@ public final class DataStore
|
|||
}
|
||||
|
||||
// notify that preferences have changed
|
||||
IDataStorePreferenceListener[] listeners = null;
|
||||
synchronized (_dataStorePreferenceListeners){
|
||||
for (int i = 0; i < _dataStorePreferenceListeners.size(); i++){
|
||||
IDataStorePreferenceListener listener = (IDataStorePreferenceListener)_dataStorePreferenceListeners.get(i);
|
||||
listener.preferenceChanged(property, value);
|
||||
listeners = (IDataStorePreferenceListener[])_dataStorePreferenceListeners.toArray(new IDataStorePreferenceListener[_dataStorePreferenceListeners.size()]);
|
||||
}
|
||||
|
||||
for (int i = 0; i < listeners.length; i++){
|
||||
IDataStorePreferenceListener listener = listeners[i];
|
||||
listener.preferenceChanged(property, value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue