That's how I originally planned on doing it. The main issue I guess is that this is going to be pushed out via group policy. I have been told that it can be sometimes problematic. My other thought was to actually have two services - one strictly for the scheduler and one for the app itself. The scheduler service would then net stop the main service... Sent from my BlackBerry 10 smartphone. Original Message From: Gavin Lambert Sent: Tuesday, March 4, 2014 7:51 PM To: boost-users@lists.boost.org Reply To: boost-users@lists.boost.org Subject: Re: [Boost-users] [boost::thread] Starting thread at specific time On 5/03/2014 13:13, Quoth Kyle Ketterer:
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:
I would suggest using the Windows Task Scheduler to start the process at the appropriate time, rather than having it always running but idle until the designated moment. Saves resources and avoids bugs. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users