Questions tagged [ppl]

The Parallel Patterns Library (PPL) is a C++ library included with Microsoft Visual C++ 2010+ that provides an imperative programming model that promotes scalability and ease-of-use for developing concurrent applications.

The Parallel Patterns Library (PPL) is a C++ library included with Microsoft Visual C++ 2010+ that provides an imperative programming model that promotes scalability and ease-of-use for developing concurrent applications.

142 questions
0
votes
1 answer

WinRT C++/CX Tasks not compiling

I'm trying to use C++/CX to create a WinRT component. I have the following code and it doesn't compile. What is wrong with it? From what I understand PPL tasks should transparently be converted to IAsyncOperation if it's a task with a…
Jeremy Edwards
  • 14,620
  • 17
  • 74
  • 99
0
votes
1 answer

C++ PPL - initialize a combinable

Let's say that in enclosing scope, I have some variables that each thread in a parallel_for loop should access. I have an idea combinable would suits, making one copy of my variable in each thread. However, I don't understand how to initialize my…
kiriloff
  • 25,609
  • 37
  • 148
  • 229
0
votes
1 answer

C++ PPL - lambda expression and data sharing

my program with PPL crashes. I do suspect some mishandled share of variables. If my syntax for parallel_for construct is parallel_for(0,p,[&x1Pt,&x2Pt,&confciInput,&formula,¶m,&method,&lowOneParam,&highOneParam](int i) { //…
kiriloff
  • 25,609
  • 37
  • 148
  • 229
0
votes
3 answers

warning C4189 in concurrent_vector.h

I got following warning in my project (both Release and Debug mode): C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\concurrent_vector.h(1599): warning C4189: '_Array' : local variable is initialized but not referenced …
IgorStack
  • 799
  • 2
  • 6
  • 22
-1
votes
1 answer

How to refactor code that is using PPL heavily. C++

So I have function that looks like this task> task1 = create_task([this,token, stream] { // Here I have code that is working, but I would like to refactor it // maybe even make it go after or before this…
J. Doe
  • 33
  • 1
  • 4
-1
votes
1 answer

How a progressbar should be correctly updated within a nested loop in C++?

I use MS Visual Studio 2010, C++,PPL library for parallel calculations and Qt library. Concurrency::parallel_for (size_t(0), m_Engines.size(), [&](size_t i) { for (size_t j = 1;j <= m_Iterations;j++) { Compute(i);//some time-cosuming…
ilya
  • 1,103
  • 14
  • 36
-2
votes
1 answer

Concurrently operating on each pair

I've got a number of objects. I need to deal with each pair concurrently (not every pair, arbitrary pairings), but each object should be only dealt with in serial. I'm struggling to describe an algorithm which can deal with this, preferably without…
Puppy
  • 144,682
  • 38
  • 256
  • 465
1 2 3
9
10