Top "Stdasync" questions

The C++11 function template std::async() provides a mechanism to launch a function potentially in a new thread and provides the result of the function in a future object.

Why should I use std::async?

I'm trying to explore all the options of the new C++11 standard in depth, while using std::async and reading …

c++ c++11 asynchronous future stdasync
When to use std::async vs std::threads?

Can anybody give a high level intuition about when to use each of them? References: Is it smart to replace …

c++ multithreading c++11 stdasync
Can I use std::async without waiting for the future limitation?

High level I want to call some functions with no return value in a async mode without waiting for them …

c++ multithreading c++11 asynchronous stdasync
What is the difference between packaged_task and async

While working with the threaded model of C++11, I noticed that std::packaged_task<int(int,int)> task([](…

c++ multithreading c++11 stdasync packaged-task
Which std::async implementations use thread pools?

One of the advantages of using std::async instead of manually creating std::thread objects is supposed to be that …

c++ multithreading c++11 stdasync
"no matching function for call to ‘async(std::launch, <unresolved overloaded function type>, std::string&)’"

I am trying to create a thread using std::async, but I keep getting the error "no matching function for …

c++ c++11 stdasync
How can I cancel a std::async function?

Possible Duplicate: Is there a way to cancel/detach a future in C++11? There is a member function which runs …

c++ multithreading c++11 crash stdasync
c++11 std::async doesn't work in mingw

Running this code from Herb Sutter's presentation. This works fine in linux under gcc 4.6.3. I'm thinking that future.h isn't …

c++ c++11 concurrency mingw stdasync
Perfect Forwarding to async lambda

I have a function template, where I want to do perfect forwarding into a lambda that I run on another …

c++ c++11 lambda perfect-forwarding stdasync