Boost logo

Boost Users :

Subject: Re: [Boost-users] [thread] thread.join() throws in 1.52.0
From: Szymon Gatner (szymon.gatner_at_[hidden])
Date: 2012-11-08 14:56:13


OK, clear. Thing is thread is actually being join()ed by
thread_group::join_all() which does not do the check. Is that a bug or I am
using it wrong now too?

2012/11/8 Igor R <boost.lists_at_[hidden]>

> > after updating from 1.51.0 to 1.52.0 call to a thread::join() throws
> > "invalid_argument" / not joinable. I see that there is a change with
> regards
> > to thread d-tor in this version but I don't really understand if and why
> > this is related.
> >
> > Should joinable() be called now before every join()?
>
>
> Yes, you should check that the thread is joinable or ensure that
> BOOST_THREAD_TRROW_IF_PRECONDITION_NOT_SATISFIED is not defined.
>
> http://www.boost.org/doc/libs/1_52_0/doc/html/thread/thread_management.html#thread.thread_management.thread.join
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

-- 
Szymon Gatner
The Lordz Games Studio
www.thelordzgamesstudio.com


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