mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-05 15:25:49 +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
|
* Noriaki Takatsu (IBM) - [245069] [dstore] dstoreTrace has no timestamp
|
||||||
* David McKnight (IBM) - [282634] [dstore] IndexOutOfBoundsException on Disconnect
|
* David McKnight (IBM) - [282634] [dstore] IndexOutOfBoundsException on Disconnect
|
||||||
* David McKnight (IBM) - [282599] [dstore] log folder that is not a hidden one
|
* 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;
|
package org.eclipse.dstore.core.model;
|
||||||
|
@ -2156,11 +2157,14 @@ public final class DataStore
|
||||||
}
|
}
|
||||||
|
|
||||||
// notify that preferences have changed
|
// notify that preferences have changed
|
||||||
|
IDataStorePreferenceListener[] listeners = null;
|
||||||
synchronized (_dataStorePreferenceListeners){
|
synchronized (_dataStorePreferenceListeners){
|
||||||
for (int i = 0; i < _dataStorePreferenceListeners.size(); i++){
|
listeners = (IDataStorePreferenceListener[])_dataStorePreferenceListeners.toArray(new IDataStorePreferenceListener[_dataStorePreferenceListeners.size()]);
|
||||||
IDataStorePreferenceListener listener = (IDataStorePreferenceListener)_dataStorePreferenceListeners.get(i);
|
}
|
||||||
listener.preferenceChanged(property, value);
|
|
||||||
}
|
for (int i = 0; i < listeners.length; i++){
|
||||||
|
IDataStorePreferenceListener listener = listeners[i];
|
||||||
|
listener.preferenceChanged(property, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue