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 8565083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:20:36+00:00 2026-06-11T17:20:36+00:00

in my current code I wait for some event to occur using something like

  • 0

in my current code I wait for some event to occur using something like

WaitForMultipleObjects(2,pEvents,false,1000);

in s separate thread and post stuff to a State Machine whenever I get events worth posting. I am porting this behavior into QP where, as I understand it, each active object is its own thread. Can I therefore just do this in an infinite loop (with some terminate break condition) in an Active object?

As I understand it QP is waiting on a windows event under the hood as well, is there a trick to retrieve a handle to the windows event representing my current active objects queue and wait on it as well so my thread (active object) blocks on my (non QP) events AND the event activated if some other object posts to my queue?

  • 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-11T17:20:37+00:00Added an answer on June 11, 2026 at 5:20 pm

    In case anyone is interested I found just what I was looking for. The member m_osObject of QActive is a handle to the event waited on when the input queue is empty.

    Note that I only tested this on the windows port of QP and to the best of my knowledge it does not work with any other port.

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

Sidebar

Related Questions

current code I've built function to do something over collection of jQuery elements: var
Here is the current code I am using to parse the URL and it's
Here is the current code I am using: <UserControl xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml x:Class=ButtonPrototype.MainPage Width=640 Height=480>
Here is my current code: RewriteCond %{HTTP_HOST} !^example\.com [NC] #RewriteCond %{REQUEST_URI}!^something RewriteCond %{HTTP_HOST} ^([^.]+)\.example\.com
I have some code in which I am waiting on the current x,y,z position
I'm trying to use AppleScript to modify some app settings. The code looks like
I'm writing a syscall in Linux 3.0, and while I wait for some event
I am testing some code that does asynchronous processing using Grand Central Dispatch. The
For this answer I wrote code like: def show_wait_spinner dirty = false spinner =
current code (not working): /^script\s*type=\text\/javascript/i.test(tagName)

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.