X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=base%2Fservices%2Fschedsvc%2Frpcserver.c;h=4ae657f6a2aaf9c4e291479fcc89f2f2ebc873a2;hp=1ca2b353ee219a21f43cbf6192c46ce1236acf8b;hb=e4d79e514a43fa9ef3b5c92c8d9f0eba307c8706;hpb=03294dd09763d8d2b4979a413c018ccd2a16fdde diff --git a/base/services/schedsvc/rpcserver.c b/base/services/schedsvc/rpcserver.c index 1ca2b353ee2..4ae657f6a2a 100644 --- a/base/services/schedsvc/rpcserver.c +++ b/base/services/schedsvc/rpcserver.c @@ -112,8 +112,6 @@ NetrJobAdd( pJob->JobId = dwNextJobId++; dwJobCount++; - // Cancel the start timer - /* Append the new job to the job list */ InsertTailList(&JobListHead, &pJob->JobEntry); @@ -129,11 +127,13 @@ NetrJobAdd( DumpStartList(&StartListHead); #endif - // Update the start timer - /* Release the job list lock */ RtlReleaseResource(&JobListLock); + /* Set the update event */ + if (Events[1] != NULL) + SetEvent(Events[1]); + /* Return the new job ID */ *pJobId = pJob->JobId; @@ -162,8 +162,6 @@ NetrJobDel( /* Acquire the job list lock exclusively */ RtlAcquireResourceExclusive(&JobListLock, TRUE); - // Cancel the start timer - JobEntry = JobListHead.Flink; while (JobEntry != &JobListHead) { @@ -193,11 +191,13 @@ NetrJobDel( JobEntry = JobEntry->Flink; } - // Update the start timer - /* Release the job list lock */ RtlReleaseResource(&JobListLock); + /* Set the update event */ + if (Events[1] != NULL) + SetEvent(Events[1]); + return ERROR_SUCCESS; }