Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost::thread] Starting thread at specific time
From: reminisc3_at_[hidden]
Date: 2014-03-04 19:56:07


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_at_[hidden]
Reply To: boost-users_at_[hidden]
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_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


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