for example, i'm working on a control layer thing for my midifighter twister and want to access the top most layer during flush but what if some other event pushes another one to the top during flush(). would that be an issue here?
If anyone has any thoughts or suggestions about this sort of thing it would be greatly appreciated.
Code: Select all
public void flush(){
//flush the topmost layer
TwisterLayer layer = layers.get(layers.size() - 1);
layer.flush();
}