M
MPowell
Gents/Ladies, I'm doing (at least plan on ) lots of Reads and Writes
across a communication channel. I'm told that for the 'receive side'
it'd be prudent to implement a double buffering scheme to handle all
the asnychronous inputs.
Someone mentioned Herb Shutters book as frame of reference,
nonetheless, could someone provide sample code or - in effect an
outline of double buffering? I've perused the web but most references
are to 'GUI' applications which - quite frankly I'm not interested in.
If I understand double buffering, the idea is to create two buffers.
Lets say Buffer A and Buffer B. Now lets suppose data comes in to
Buffer A. The idea then is to swap Buffer A with Buffer B and as such
the next asnychronous input will write to Buffer B.
Thanks in advance.
across a communication channel. I'm told that for the 'receive side'
it'd be prudent to implement a double buffering scheme to handle all
the asnychronous inputs.
Someone mentioned Herb Shutters book as frame of reference,
nonetheless, could someone provide sample code or - in effect an
outline of double buffering? I've perused the web but most references
are to 'GUI' applications which - quite frankly I'm not interested in.
If I understand double buffering, the idea is to create two buffers.
Lets say Buffer A and Buffer B. Now lets suppose data comes in to
Buffer A. The idea then is to swap Buffer A with Buffer B and as such
the next asnychronous input will write to Buffer B.
Thanks in advance.