mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-18 22:45:23 +02:00
[368454] provide thread safety for cachedRemoteFiles hashmap
This commit is contained in:
parent
0555dadb25
commit
6ba0c4e8ba
1 changed files with 6 additions and 2 deletions
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -123,7 +123,11 @@ public abstract class RemoteFileSubSystem extends SubSystem implements IRemoteFi
|
||||||
|
|
||||||
protected ArrayList _searchHistory;
|
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();
|
protected HashMap _cachedRemoteFiles = new HashMap();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue