Feb 1, 2006 at 9:54pm
I’m pretty new to java. I know that this is a pretty basic question,
I’m working on a buffer editing program, borrowing heavily from buf.Op.
Every time draw() is called, I’d like to clear the buffer first. But
My intuition tells me that if I make a clear_nondeferred() which isn’t
thanks for your help,
Feb 1, 2006 at 10:01pm
Feb 1, 2006 at 10:45pm
sorry, i was being lazy not wanting to cut down my code into a readable bit.
so, basically, the deal is i would like to be able to call the update() method from max, first have it clear the buffer, then do its stuff. but i would like this to all be low priority, so i don’t hang up max while clearing/writing the buffer.
the question is: should i use clearbuf() or clearbufnonthreaded()?
public void clearbuf()
public void clearbufnonthreaded()
public void update()
Iterator it = bands.iterator();
Feb 2, 2006 at 12:39am
>the question is: should i use clearbuf() or clearbufnonthreaded()?
I would say do the latter. You could also do something like this if
> private boolean _running = false;
> Thread t = new Thread()
>sorry, i was being lazy not wanting to cut down my code into a readable bit.
Feb 2, 2006 at 2:07am
thanks, topher. i think the threading choice makes more sense, anyway. thanks for the example.
Quote: topher lafata wrote on Wed, 01 February 2006 17:39
You must be logged in to reply to this topic.