Boost logo

Boost Users :

Subject: Re: [Boost-users] thread safe queue
From: Sean Farrow (sean.farrow_at_[hidden])
Date: 2011-07-19 16:30:55

HI Brian:
The lock free stuff should do the trick, I'll take a luck!

-----Original Message-----
From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Brian Budge
Sent: 19 July 2011 21:26
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] thread safe queue

On Tue, Jul 19, 2011 at 1:18 PM, Sean Farrow
<sean.farrow_at_[hidden]> wrote:
> Hi:
> Has anyone written or does anyone know of a thread safe queue that uses
> boost to allow it to be cross platform?
> Cheers
> Sean.

What functionality are you looking for exactly? There is a review in
process for the lock-free data structures library, which includes a
lock-free fifo. Otherwise, I think your best bet is to wrap accesses
to your std::queue with locks on a boost::mutex. If you want a
priority_queue, something like the latter is probably your only

Boost-users mailing list

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at