
19 Jul
2011
19 Jul
'11
8:25 p.m.
On Tue, Jul 19, 2011 at 1:18 PM, Sean Farrow
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 option. Brian