I'm pretty new to java. I know that this is a pretty basic question,
but I would appreciate some advice.
I'm working on a buffer editing program, borrowing heavily from buf.Op.
There are two main buffer-accessing functions: one which clears the
entire buffer: clear(), and one which draws my curve into the buffer:
draw(). As it stands, the buffer-accessing parts of both of these
functions are within deferLow executables.
Every time draw() is called, I'd like to clear the buffer first. But
I'm hesitant to call clear() (which is deferred) and then draw()
function (which is also deferred) because the clear function needs to
finish before the draw function even starts.
My intuition tells me that if I make a clear_nondeferred() which isn't
deferred, and call it from my deferred executable in draw(), then I'll
be safe and not jam up my high-priority thread.
thanks for your help,