Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost::thread] Starting thread at specific time
From: Gavin Lambert (gavinl_at_[hidden])
Date: 2014-03-04 19:50:45


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 list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net