[SCHEDSVC] Use a timer to start jobs

This enables the service to start multiple jobs at the same time.
This commit is contained in:
Eric Kohl 2021-12-25 14:18:53 +01:00
parent 99dcd6f71c
commit fa607733cb
4 changed files with 117 additions and 159 deletions

View file

@ -121,8 +121,6 @@ NetrJobAdd(
/* Calculate the next start time */
CalculateNextStartTime(pJob);
/* Insert the job into the start list */
InsertJobIntoStartList(&StartListHead, pJob);
#if 0
DumpStartList(&StartListHead);
#endif
@ -169,8 +167,6 @@ NetrJobDel(
if ((CurrentJob->JobId >= MinJobId) && (CurrentJob->JobId <= MaxJobId))
{
/* Remove the job from the start list */
RemoveEntryList(&CurrentJob->StartEntry);
#if 0
DumpStartList(&StartListHead);
#endif