mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-15 04:55:22 +02:00
[196919] Fix deadlock with workspace operations
This commit is contained in:
parent
b63bcbea48
commit
4e33ce9006
1 changed files with 3 additions and 2 deletions
|
@ -15,6 +15,7 @@
|
||||||
* Martin Oberhuber (Wind River) - [184095] Replace systemTypeName by IRSESystemType
|
* Martin Oberhuber (Wind River) - [184095] Replace systemTypeName by IRSESystemType
|
||||||
* Martin Oberhuber (Wind River) - [177523] Unify singleton getter methods
|
* Martin Oberhuber (Wind River) - [177523] Unify singleton getter methods
|
||||||
* Martin Oberhuber (Wind River) - [175680] Deprecate obsolete ISystemRegistry methods
|
* Martin Oberhuber (Wind River) - [175680] Deprecate obsolete ISystemRegistry methods
|
||||||
|
* Martin Oberhuber (Wind River) - [196919] Fix deadlock with workspace operations
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.persistence;
|
package org.eclipse.rse.internal.persistence;
|
||||||
|
@ -94,7 +95,7 @@ public class RSEPersistenceManager implements IRSEPersistenceManager {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.rse.persistence.IRSEPersistenceManager#isExporting()
|
* @see org.eclipse.rse.persistence.IRSEPersistenceManager#isExporting()
|
||||||
*/
|
*/
|
||||||
public synchronized boolean isBusy() {
|
public boolean isBusy() {
|
||||||
return mutex.isLocked();
|
return mutex.isLocked();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -382,7 +383,7 @@ public class RSEPersistenceManager implements IRSEPersistenceManager {
|
||||||
* @param profileName the name of the profile to produce
|
* @param profileName the name of the profile to produce
|
||||||
* @return the profile or null
|
* @return the profile or null
|
||||||
*/
|
*/
|
||||||
private synchronized ISystemProfile load(IRSEPersistenceProvider provider, String profileName, long timeout) {
|
private ISystemProfile load(IRSEPersistenceProvider provider, String profileName, long timeout) {
|
||||||
ISystemProfile profile = null;
|
ISystemProfile profile = null;
|
||||||
if (mutex.waitForLock(null, timeout)) {
|
if (mutex.waitForLock(null, timeout)) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Reference in a new issue