Introduction

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!

Description

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!

File Access Sample

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.

File Copy In Chunks Sample

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.

File Compression Sample

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.

Merge Sort Sample

This sample shows how to compose WinRT Async operations with PPL tasks to sort a vector using mergesort and files as scratch buffers.

ImageCartonizer Sample

An application that demonstrates using PPL to build WinRT async operations. The image transformation is written in C++ and exposed to other languages as IAsyncOperationWithProgress. The operation is then consumed in the JavaScript front-end as a promise.

NQueens Sample

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.

Quize

Here we show the when_any and create_delayed_task primitives to implement a simple puzzle game.