12 Oct
2015
12 Oct
'15
9:42 p.m.
Le 12/10/15 15:57, Agustín K-ballo Bergé a écrit :
On 10/11/2015 9:02 PM, Vicente J. Botet Escriba wrote:
Hi,
all is in the title.
Don't they all? Blocking in the future destructor is what the standard mandates.
I'm confused. Do they block on the future destructor or the destructor of the shared state? The note of the standard says on the destructor of the returned future
"[ Note: If a future obtained from std::async is moved outside the local scope, other code that uses the future must be aware that the future’s destructor may block for the shared state to become ready. — end note ]"
C++ International Standard Vicente