Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Callbacks and Timers » How to properly set a timer
Re: How to properly set a timer [message #49558 is a reply to message #49557] Thu, 01 March 2018 10:47 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1093
Registered: August 2007
Senior Contributor
Hello Koldo,

Have you tried TimeCallback class? AFAIK it doesn't -directly- need a Ctrl (But it calls Upp::SetTimeCallback() too. Still, It may affect the behaviour -crash- differently ).

On console I haven't used it. But you can use a) a thread, or b) waitForSingleObject on Windows, and timer functions on posix. (Or you can emulate timer using sigtimedwait, creating a custom signal, or even using select call with a socket.)

Best regards,
Oblivion


[Updated on: Thu, 01 March 2018 11:13]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [REQUEST]: Allow callback() template to work also with non-void and non-bool return types.
Next Topic: How to set a TimeCallback
Goto Forum:
  


Current Time: Sun Apr 28 02:25:28 CEST 2024

Total time taken to generate the page: 0.04508 seconds