That would be excellent. I did a lot of experimenting with the cross platform sleep() and sleep_for() methods as well as the Windows API Sleep(). The conclusion I have from my tests, are that any type of sleep function ( on Windows at least) is absolutely unpredictable. For the precision I need to start a thread on a certain hour, I couldn't rely on sleep. I had to go the route of scheduled tasks for the app I'm developing. Linux has Sigalrm but Windows really has nothing to offer but the task scheduler. Sent from my BlackBerry 10 smartphone. Original Message From: Vicente J. Botet Escriba Sent: Sunday, March 9, 2014 9:59 AM To: boost-users@lists.boost.org Reply To: boost-users@lists.boost.org Subject: Re: [Boost-users] [boost::thread] Starting thread at specific time Le 05/03/14 01:13, Kyle Ketterer a écrit :
Hello all,
I am working on an application which I originally wrote as a console app and am now transforming into a Windows service. Basically, looking for a little advice.
My goal is to have an independent service which starts at a specific time and only runs for a set amount of hours. The code I am currently contemplating looks like this: Hi,
in my todo list: Add a scheduled_executor that allows to run a task at a specific time or after a given duration. Unfortunately I'm too busy to implement it for now. I will come back to you when available. Best, Vicente _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users