Boost logo

Boost Users :

Subject: Re: [Boost-users] thread crash on windows with icc in Release
From: Slava (Viatcheslav.Sysoltsev_at_[hidden])
Date: 2013-05-06 05:21:16


On Mon, 06 May 2013 08:09:10 +0200, Svetlana Olonetsky
<svetlana.olonetsky_at_[hidden]> wrote:

> Hello Boost Users,
>
> I want to start using boost.
> The program below crashes for me in Release only.
>
> I am running in Visual studio 9.0 with icc 11.1.
> I compiled boost (1.53/1.52) with:
>> bootstrap.bat
>> b2 toolset=intel-11.1 ( + "-sINTEL_BASE_MSVC_TOOLSET=vc-9_0")
>
>
> #include <boost/thread/thread.hpp>
>
> void change_count() {}
>
> int main(int, char*[]) {
> boost::thread thread_1(change_count);
> thread_1.join();
> return 0;
> }
>
> Thank you very much,
> Svetlana

Does it crash or throws an exception?
I recall, there was a bug/misconcept in some boost versions (roughly
around 1.50-1.52, not in 1.53 anymore) that thread::join throws an
exception if the thread is already ended.

-- Slava


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net