Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7871505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:55:35+00:00 2026-06-03T01:55:35+00:00

I use MS Visual Studio 2010, C++,PPL library for parallel calculations and Qt library.

  • 0

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 thing           
    }
});

Let’s imagine we’ve got 3 independent engines with m_Iterations for each one.
The progress bar for each engine will look like:

progress 1: ||||||||

progress 2: |||||

progress 3: |||||||||||

And I wanna have the single progressbar (instead of the shown above) which shows the backward progressbar (which shows minimal value among them):

total progress: |||||

Let us assume that we have QProgressBar * pProgressbar, CoreApplication::processEvents() “code snippets”. How should I modify the code in order to implement the idea of a single progress bar for the inner loop using Concurrency Runtime techniques.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T01:55:38+00:00Added an answer on June 3, 2026 at 1:55 am

    In order to show the minimal time, you can use QWaitCondition in side the function or you can write separate function to notify one m_Iterations finish. Lets assume , currently you are executing 3 parallel calculation engine , write QWaitCondition to signal other iterations do their jobs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use parallel_for from ppl.h and when I run the program from visual studio
I'm trying to use visual studio 2010. But it seems that the .sln file
Does anyone know if it is possible to use Visual Studio 2010 RC with
How to export use case diagram in visual studio 2010 as image? jpg or
I am trying to use the peek function in Visual Studio 2010 with these
I'm trying to use LINQ to SQL Server in C#/.NET on Visual Studio 2010.
I use Visual Studio 2005 & C#. In my FormClosing event I release some
I use Visual Studio 2010 and ReSharper 6.1. I often need to create some
I Use Visual Studio 2010 with ASP.NET 4.0 and IIS7. When I open my
Hi guys can I use Visual Studio 2010 express edition to create a telco-grade

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.