flushing and syncronicity

Post Reply New Topic
RELATED
PRODUCTS

Post

I'm curious of there is some things that should be avoided during flush. How to make sure i'm not updating arrays or hashmaps that are accessed during flush.

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();
  }
----------------------------------------------------------------------
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest

Post Reply

Return to “Controller Scripting”