Merge "Issue #1152 synchronize preload for MemoryBasedTileSet." into development
Former-commit-id: 7840b62be0e38d4c2c0b51a5e80b20bf52c79c55
This commit is contained in:
commit
87dffbee1c
1 changed files with 21 additions and 16 deletions
|
@ -49,7 +49,7 @@ import com.raytheon.uf.viz.core.rsc.capabilities.ColorMapCapability;
|
||||||
*
|
*
|
||||||
* This memory-based tileset pulls a small raster from an hdf5 file and
|
* This memory-based tileset pulls a small raster from an hdf5 file and
|
||||||
* interpolates it to a larger size. The raster is then split once it is already
|
* interpolates it to a larger size. The raster is then split once it is already
|
||||||
* loaded in memory.
|
* loaded in memory.git pull
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
*
|
*
|
||||||
|
@ -116,6 +116,10 @@ public class MemoryBasedTileSet extends AbstractTileSet {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void preloadDataObject(int level) throws StorageException {
|
protected void preloadDataObject(int level) throws StorageException {
|
||||||
|
synchronized (isLoaded) {
|
||||||
|
if (isLoaded[level]) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
IDataRecord rec = getDataRecord();
|
IDataRecord rec = getDataRecord();
|
||||||
|
|
||||||
if (loadedData == null) {
|
if (loadedData == null) {
|
||||||
|
@ -134,6 +138,7 @@ public class MemoryBasedTileSet extends AbstractTileSet {
|
||||||
|
|
||||||
isLoaded[level] = true;
|
isLoaded[level] = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected IDataRecord getDataRecord() throws StorageException {
|
protected IDataRecord getDataRecord() throws StorageException {
|
||||||
if (pdo != null) {
|
if (pdo != null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue