What is the best API for combining C ++ 11 asynchronous / futures with asynchronous Windows IO?

In particular, the upcoming Windows 8 (with Metro) will require that any IO be programmed asynchronously . In C # /. Net seems to have special await and such constructors for this, and the JavaScript API will have its own mechanism for working.

What will happen for C ++ 11 integration ? Is a brief example (for example, reading an image from a file for display?) For modern (or future) Windows? If it uses C ++ 11 features , would I expect async or future involved?

+7
source share
3 answers

Tips and tricks for developing Metro-style applications using C ++ reveal this at 59:13. The raw interface uses callback objects. In practice, people are likely to use the simplified interface offered by PPL.

+4
source

Windows 8 asynchronization is likely to be done via PPL. You can learn more about this here .

In my opinion, Windows 8 and PPL use task-based scheduling and shared locking. While std :: async and std :: future use streaming planning and proactive locking. Therefore, they are incompatible.

+1
source
0
source

All Articles