Thanks for the responses, Rodrigo and
Steve!
I hadn’t even considered that one of
the threads might be pre-empted before it locked the client_mutex, but after it
read the data.
I’ll rethink my implementation a little
bit and see if I can get around that.
Alec
From:
boost-users-bounces@lists.boost.org
[mailto:boost-users-bounces@lists.boost.org] On
Behalf Of Rodrigo Madera
Sent: Thursday, November 06, 2008
6:53 PM
To:
Subject: Re: [Boost-users] Simple
threading question (I hope)
Take a look at the bounded_buffer example in the circular_buffer
documentation.
Rodrigo
P.S. Steve, why the AMDG in all of your emails?