Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9654: try_join_for(0) returns false when thread has exited
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-02-13 18:31:44
#9654: try_join_for(0) returns false when thread has exited
-------------------------------+------------------------
Reporter: ernest.galbrun@⦠| Owner: anthonyw
Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost 1.55.0 | Severity: Regression
Resolution: | Keywords:
-------------------------------+------------------------
Comment (by viboes):
Replying to [comment:1 ernest.galbrun@â¦]:
> Apparently it is caused by a previous bug fix:
https://svn.boost.org/trac/boost/ticket/8323
>
> Now try_join_for returns false immediately if the current time is >= to
the finish time.
Right.
> It should, I think, check at least once if the thread has completed
before returning false.
Well, this is not what the documentation says :(
> I'm not sure how to do that, that's the point of calling
try_join_for(0).
Have you tried try_join_for(nanoseconds(1))?
> Is there a reason why there is no try_join() function ?
I don't know of a portable way to implement it.
Please see #9618 and if you are on Windows, please could you check if the
proposed patch works for you.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9654#comment:2> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:15 UTC