Boost logo

Boost :

Subject: Re: [boost] [boost.lockfree] Lockfree on Windows?
From: Philip Bennefall (philip_at_[hidden])
Date: 2013-04-02 11:14:33


----- Original Message -----
From: "Tim Blechmann" <tim_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Tuesday, April 02, 2013 4:55 PM
Subject: Re: [boost] [boost.lockfree] Lockfree on Windows?

> I am in need of a lock free fifo for my current project so I looked into
> lockfree. However, in the documentation I see:
>
> boost.lockfree has been tested on the following platforms:
> a.. g++ 4.4, 4.5 and 4.6, linux, x86 & x86_64
> b.. clang++ 3.0, linux, x86 & x86_64
>
> My question is what the status is on Windows? The documentation for
> boost.atomic says that Windows has been tested, so is there a reason why
> lockfree might have platform specific issues? When I run the example
> provided for the single producer/single consumer queue, I get the expected
> results so it does seem to work. It also states that the queue is lock
> free.
> Is it safe to use on Windows at present?

if you tested it and it works, you are probably fine. the mentioned
compilers are the once that i had been testing before the review.
according to [1], there are some test failures on windows, though most
of these cases seem to be related to timeouts of the stress tests.

the main reason for not mentioning windows/msvc is that i cannot test on
these platforms myself ...

tim

Thank you for the quick response, Tim! My only concern is the "probably"
part. I want to use this in production code that is meant to ship on several
platforms including Windows, so I am a little hesitant to do so if it's
"probably fine". Has anyone used Boost Lockfree in production code on
Windows? If so, were there any problems? I am only interested in spsc_queue,
which looks like it'll do just what I want (streaming audio).

Kind regards,

Philip Bennefall


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