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

  • Home
  • SEARCH
  • 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 6560505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:28:07+00:00 2026-05-25T13:28:07+00:00

Scenario: – My main (UI) thread (Thread M) runs, and spins up a worker

  • 0

Scenario:
– My main (UI) thread (Thread “M”) runs, and spins up a worker thread (“W”) to control with some hardware.
– “W” wants to send progress notifications to “M” every so often.
– The notification-invocation can’t block “W”… “W” needs to make the call and return immediately; “M” will process the notification async and not return anything to “W”.
– “M” must notified by a callback running on thread “M”.
– Must be able to pass data (don’t worry about thread-safeness of data).

.NET has just such a facility in it’s System.ComponentModel.AsyncOperation class, but I’m wanting to create cross-platform code, not just .NET or even strictly Win32 (though my 1st platform is native c++ on Win32).

Using Boost would be a plus.

I’ve read this:
Boost: Fire and forget asynchronous function call?
but am wondering if there’s a simpler want than to spin up additional helper threads.

Any ideas and/or links would be greatly appreciated!
-Dave

  • 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-05-25T13:28:08+00:00Added an answer on May 25, 2026 at 1:28 pm

    If you are using Boost.Thread then you can use a condition variable.

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

Sidebar

Related Questions

Scenario is that we send out thousands of emails through SMTP server. Content is
Scenario : i have a database table that is being updated frequently by some
Scenario: I start out in my app's main page. I navigate to sub-page A,
Scenario: I have configured SQOOP on my PC. But I am facing some problem
Scenario I have an web application which needs some calculations and processing on data.
Scenario: I'm working on a solution that has many assemblies. The main assembly references
Scenario: I am using a listview with custom Adapter. I am fetching data every
Scenario: A stored procedure receives from code a DateTime with, let's say DateTime.Now value,
Scenario: You have an ASP.Net webpage that should display the next image in a
Scenario: Attempting to import many (>100), large(>1M recs) flat-files (csv). Problem: Many records are

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.