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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:26:33+00:00 2026-06-12T11:26:33+00:00

Where/how I can get a Looper according to the C++ standard or C++ standard

  • 0

Where/how I can get a Looper according to the C++ standard or C++ standard libraries ?

I need to design my own callback system and, of course, I need this one to manage my queue and my components.

A looper is something that given a frequency does 1 simple thing, it just runs a queue at each clock, if you set a 10 ms looper, every 10ms the looper will fire the event/events in the queue.

This is basically a looper, most of the time is usually tied to the kernel, the hardware clock or something really low-level.

  • 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-12T11:26:35+00:00Added an answer on June 12, 2026 at 11:26 am

    QTimer does what you want — “single-shot”, or as in your case, fires repeatedly at a given (millisecond) frequency.

    You might also google for “watch-dog-timer”, as I think that may be a more common term than “looper”.

    If you want to go more lower-level, some systems (like Windows) have a “system-clock” (typically at millisecond resolution), and another higher-performance clock like a “multi-media-clock” (typically at nanosecond resolution) if performance is important.

    [EDIT], Ok, so I watched the video on “what-is-a-looper”. This looks like a standard event-processing-queue. GUI events trigger messages-added-to-the-queue, and the “looper” clears/executes-the-message-queue periodically. A special case is that the “looper” also handles “local-service-calls” (on Android, which was the topic of the video). So, it seems you merely need:

    • a message queue
    • a timer to clear the message queue (on a thread, or separate from the “main-processing”)

    The video notes:

    • Views use Looper messages to fire events
    • Since Loopers are 1:1 with threads, the View tree is too
    • Threads you create cannot directly touch a View
    • But, you can create a new Looper for your own thread

    So, interesting, but doesn’t look particulary difficult to implement. This is a well-tread pattern.

    So, in this context, my suggestion of QTimer would only be a part of the solution. Sounds like you want the library for the message queue to go with it.

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

Sidebar

Related Questions

I get this error Can't create handler inside thread that has not called Looper.prepare()
I can get this to work: [<DllImport(user32.dll)>] extern bool GetClientRect(nativeint, RECT*) let getClientRect hwnd
I can get the current selected row in this way: private void DataGridView1_CellContentClick(object sender,
I can't get this to work. The problem is, the Thread is never notified
I have been trying to get this android service working but I can not
This is the error i get. You can see all the codes that are
I was able to fix this, but I am wondering if I can get
I get a crash Can't create handler inside thread that has not called Looper.prepare()
I always get this error when i try to run my own programmed App.
Can get all triples with value null in specific field? All people with date_of_birth

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.