Revision 44198 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.db/org.gvsig.fmap.dal.db.jdbc/src/main/java/org/gvsig/fmap/dal/store/jdbc2/spi/operations/AbstractConnectionOperation.java
AbstractConnectionOperation.java | ||
---|---|---|
39 | 39 |
@Override |
40 | 40 |
public Object perform() { |
41 | 41 |
try { |
42 |
return this.perform_operation(); |
|
42 |
if( this.helper.isThreadSafe() ) { |
|
43 |
return this.perform_operation(); |
|
44 |
} |
|
45 |
synchronized(AbstractConnectionOperation.class) { |
|
46 |
return this.perform_operation(); |
|
47 |
} |
|
43 | 48 |
} catch (RuntimeException ex) { |
44 | 49 |
throw ex; |
45 | 50 |
} catch (Exception ex) { |
Also available in: Unified diff