$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [lockfree review] rfc: naming and interface
From: Gottlob Frege (gottlobfrege_at_[hidden])
Date: 2011-07-24 23:18:37
On Sun, Jul 24, 2011 at 5:22 AM, Tim Blechmann <tim_at_[hidden]> 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