PDA

View Full Version : What is the best way to write a task scheduler?



ayanda83
18th February 2017, 09:40
Hi there guys, I am looking for ideas on how to write a task scheduler for my server. I've written a server that performs certain tasks however I want the server to perform these tasks automatically at certain times of the day (e.g. 00:00, 11:00 and 15:00). At these times the server must call a function to trigger these tasks. What would be the best approach for this?

Lesiok
18th February 2017, 11:35
For example using QTimer with 1 minute period. In slot connected to timeout() signal You can check on some list if You have to do something in this moment.