* testsuite/30_threads/async/54297.cc: Add dg-require-nanosleep.
Fixed on trunk and 4.7 branch.
--- a/libstdc++-v3/testsuite/30_threads/async/54297.cc
+++ b/libstdc++-v3/testsuite/30_threads/async/54297.cc
@@ -5,6 +5,7 @@
// { dg-require-cstdint "" }
// { dg-require-gthreads "" }
// {
On 26 August 2012 15:48, H.J. Lu wrote:
> On Sun, Aug 26, 2012 at 7:00 AM, Jonathan Wakely
> wrote:
>> On 26 August 2012 00:02, Jonathan Wakely wrote:
>>> This fixes a stupid mistake I made where the functor and asynchronous
>>> result can go out of scope before the async thread is joined.
>>>
>
On Sun, Aug 26, 2012 at 7:00 AM, Jonathan Wakely wrote:
> On 26 August 2012 00:02, Jonathan Wakely wrote:
>> This fixes a stupid mistake I made where the functor and asynchronous
>> result can go out of scope before the async thread is joined.
>>
>> The _Async_state_common destructor still needs t
On 26 August 2012 00:02, Jonathan Wakely wrote:
> This fixes a stupid mistake I made where the functor and asynchronous
> result can go out of scope before the async thread is joined.
>
> The _Async_state_common destructor still needs to be exported from the
> library, which is what the macro hack
This fixes a stupid mistake I made where the functor and asynchronous
result can go out of scope before the async thread is joined.
The _Async_state_common destructor still needs to be exported from the
library, which is what the macro hack is for.
PR libstdc++/54297
* include/std