Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
Description
It looks like there is a mismatch between the 2 mutex, and/or between comments and code.
This code was added as is on r50531.
–
https://git.reactos.org/?p=reactos.git;a=blob;f=drivers/ksfilter/ks/filter.c;hb=master#l128
131 IKsProcessingObject_fnProcessingObjectWork(
|
...
|
142 /* acquire processing mutex */ |
143 KeWaitForSingleObject(&This->ControlMutex, Executive, KernelMode, FALSE, NULL);
|
...
|
147 /* dispatch level processing */ |
148 if (KeReadStateMutex(&This->ControlMutex) == 0) |
...
|
155 /* acquire processing mutex */ |
156 TimeOut.QuadPart = 0LL;
|
157 Status = KeWaitForSingleObject(&This->ControlMutex, Executive, KernelMode, FALSE, &TimeOut);
|
...
|
183 /* release process mutex */ |
184 KeReleaseMutex(&This->ProcessingMutex, FALSE);
|