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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T16:24:47+00:00 2026-05-29T16:24:47+00:00

I have written a program that runs on Linux and uses sigevent and timer_create

  • 0

I have written a program that runs on Linux and uses sigevent and timer_create in order to have a callback function being called perdiodically at a specified frequency. Now, I want the program to be portable (Windows and Linux), so the long way to do it is to use #ifdefs and use Windows equivalent functionality.

AFAIK, the equivalent on windows would be TimerQueueTimer.

I know this is a OS service, but just like thread, it can be made portable via a library like Boost C++.

The question is: do you know if there is such things in the Boost C++ library, or maybe in POCO or other respectable library?

If it is absent, then is there anything preventing the presence of such thing in a portable library?

FYI, boost::asio::deadline_timer is not what I am looking for, it must be a service that calls periodically a callback function with the same precision as timer_create and TimerQueueTimer.

  • 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-29T16:24:49+00:00Added an answer on May 29, 2026 at 4:24 pm

    POCO has a multi-threaded Timer class that runs TimerTask(s). Basically you override a TimerTask’s run() method with what you want to do when the timer expires. Multiple tasks can be added to the Timer object which spawns a thread to sequentially run all pending tasks. The tasks can be one-time or interval repeatable.

    Not sure if it meets all of your needs but it is worth looking at.

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

Sidebar

Related Questions

I have a program written in C that runs on Linux, MacOS and Windows.
I have a bash script that runs a simulation program written in Fortran 90,
I have written a program that uses qhttp to get a webpage. This works
I have a program written in VB.Net (Visual Studio 2008) that uses a DLL
I have written a very small C# program, that uses a very small SQL
I have written a short program in a ruby file that runs correctly on
I have written a program that will etablish a network connection with a remote
I have written a java program that is actually works as a gui to
I have written a c# program that calls a c++ dll that echoes the
Below I have written a sample program that I have written to learn about

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.