This revision of the Concurrency Runtime and Parallel Pattern Library sample pack demonstrates a convenient way of consuming and producing Windows Runtime asynchronous operations using PPL.
Now compatible with Windows 8 Release Preview and Visual Studio 2012 Release Preview!
The sample pack contains a preview version of the integration of the PPL Tasks feature with the Windows Runtime. In the sample pack, the new PPL functionality is available under the concurrency::preview namespace. This is an early glimpse at the functionality that are considering for a future version of the Visual Studio. Check out our blog at http://blogs.msdn.com/b/nativeconcurrency, build the samples, and send us your feedback!
This sample is based off of an Official Windows SDK Sample. This sample shows how to create, read, write to, copy or delete a file, and how to retrieve file properties. It demonstrates a preview version of the integration of PPL Tasks with the Windows Runtime.
This sample shows how to compose WinRT Async operations with PPL taks to copy a file in chunks. This sample is mainly for demonstrating the programming model offered by this preview version of PPL tasks.
This sample shows how to compose WinRT Async operations with PPL taks to compress and decompress text. Like the previous sample, this sample is mainly for demonstrating the programming model offered by this preview version of PPL tasks.
This sample shows how to compose WinRT Async operations with PPL tasks to sort a vector using mergesort and files as scratch buffers.
Another sample that shows how to use PPL to produce WinRT async operations. The solver is written in C++ and exposed to other languages as IAsyncOperationWithProgress. The intermediate solutions are reported via the progress callback, and final number of solutions is reported as a result of the operation.
Here we show the when_any and create_delayed_task primitives to implement a simple puzzle game.