Boost logo

Boost :

From: JH (jupiter.hce_at_[hidden])
Date: 2019-09-02 11:57:27


On 9/2/19, Gavin Lambert via Boost <boost_at_[hidden]> wrote:
> On 2/09/2019 17:54, JH wrote:
>> Yes, three IO read / write, but only one thread. The thing I am not
>> clear was your comment, "You may still need locks to protect things
>> that are accessed from both callbacks".
>
> That's not what I said.
>
> I said from both "callbacks" and "initiating functions".
>
> Or in more verbose form: accessed from both of:
> 1. callbacks
> 2. initiating functions
>
> The latter meaning something executed not on the callback thread --
> named thus because in naive implementations usually the first read and
> most writes will be initiated externally like that.

Well, there is no other thread other than my callbacks to run
ofstream, ifstream and Linux system read / write, I think the simple
answer is I don't need lock in a single thread, if that is correct, I
am truly relieved :-).

Thanks Gavin.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk