schedsvc: Add Task Scheduler service. Try 2.

Alexandre Julliard julliard at winehq.org
Thu Mar 6 08:16:43 CST 2014


Dmitry Timoshkov <dmitry at baikal.ru> writes:

> Alexandre Julliard <julliard at winehq.org> wrote:
>
>> > Would starting the service from taskschd.dll when an application calls
>> > ITaskService::Connect() be a viable compromise? Of course that would mean
>> > that the scheduled tasks will be added to the queue only when the service
>> > is running.
>> 
>> If there are scheduled tasks then it's OK for the service to be running
>> always; but as long as there aren't, it should be started on-demand.
>
> So I would implement it like this: the service would be always started
> on Wine boot, it would then load the xml task definitions and if there is
> no anything would exit right away. Then the service would be started by
> taskschd.dll if ITaskService::Connect() can't connect to an existing
> service instance. Does this sound acceptable?

No, having it start always defeats the whole point. Just mark it
auto-start once a task is added.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list