initializeSpecifiedPresetData(indexes);
}
// assumes that all indexes are valid!
private void initializeSpecifiedPresetData(final int[] indexes) {
ZWaitThread t = new ZRemoteDumpThread() {
public void run() {
this.setName("PresetDataPass");
Integer preset;
for (int n = 0, o = indexes.length; n < o; n++) {
deviceLock.access();
try {
if (this.alive == false) {
return;
}
preset = IntPool.get(indexes[n]);
try {
if (!isPresetInitialized(preset))
refreshPreset(rootPresetContext, preset);
} catch (NoSuchPresetException e) {
} catch (NoSuchContextException e) {
}
} finally {
deviceLock.unlock();
}
}
}
};
workerThreads.add(t);
t.start();
}