1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 22:25:25 +02:00

[368454] provide thread safety for cachedRemoteFiles hashmap

This commit is contained in:
David McKnight 2012-02-01 16:29:48 +00:00
parent 0555dadb25
commit 6ba0c4e8ba

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2002, 2011 IBM Corporation and others.
* Copyright (c) 2002, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@ -123,7 +123,11 @@ public abstract class RemoteFileSubSystem extends SubSystem implements IRemoteFi
protected ArrayList _searchHistory;
// all created IRemoteFiles mapped in cache to quick retrieval
/**
* All created IRemoteFiles are mapped in a cache for quick retrieval.
* This is a HashMap so any access to it needs to be synchronized otherwise
* thread-safety could be compromised.
*/
protected HashMap _cachedRemoteFiles = new HashMap();
/**