callbacks
Posted: Tue Aug 09, 2016 9:56 pm
I'm using the 1.95 API library on a Mac.
I'm seeing an odd situation in which the callbacks seem to be called
out of order; the firstSampleNum will jump ahead by about a million
since the last call, and then jump back by the same amount on
the next call. I'm trying to figure out what I'm doing wrong.
Will there be a problem if my callback function sometimes waits
before returning, for example if it has to wait for a lock? What if it
has to wait for a long time, perhaps many seconds?
Could the callback be called in parallel from multiple threads? Or is
it guaranteed to be only called once at any given time?
Is there a working example of callback code somewhere that
I could look at?
Thanks,
Robert
I'm seeing an odd situation in which the callbacks seem to be called
out of order; the firstSampleNum will jump ahead by about a million
since the last call, and then jump back by the same amount on
the next call. I'm trying to figure out what I'm doing wrong.
Will there be a problem if my callback function sometimes waits
before returning, for example if it has to wait for a lock? What if it
has to wait for a long time, perhaps many seconds?
Could the callback be called in parallel from multiple threads? Or is
it guaranteed to be only called once at any given time?
Is there a working example of callback code somewhere that
I could look at?
Thanks,
Robert