
25 Jul
2011
25 Jul
'11
3:18 a.m.
On Sun, Jul 24, 2011 at 5:22 AM, Tim Blechmann <tim@klingt.org> wrote:
- fail/overwrite/wait on overflow, fail/wait on underflow
is `overwrite' reasonable? and there would be quite a number of options, how to wait: spin, spin-and-yield(), wait for semaphore (it there were a boost.semaphore), wait for condition variable
Yes overwrite is reasonable. Imagine real-time data like the accelerometer/magnetometer of a cell phone. The most recent data can overwrite the oldest because typically the most recent is most important (ie which way is the phone facing *now*) and then maybe some recent history data (to detect gestures), but the oldest data can be thrown away. Tony