Is lock required when using WdfFindRequest/WdfRetrieveFoundRequest for the same queue in two callbacks RRS feed

  • Question

  • Hi,

    I havw a manual queue in my driver. when I want to complete a request from this queue, I use WdfFindRequest in iteration to find the match request, then use WdfRetrieveFoundRequest and complete the request. this fllow occur in two different callback that may called in parallel for two different request in that manual queue. my question is if the the framework care the taking out from the queue when I call WdfRetrieveFoundRequest in one callback, so the another callback that call WdfFindRequest won't fail on invalid request. and if the framework really do it (so I don't have to lock the queue ecplicitily), does it also sync between WdfFindRequest/WdfRetrieveFoundRequest and CancelledOnQueue for this manual queue?



    Wednesday, July 8, 2015 4:45 AM

All replies

  • you need to synchronize it

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Wednesday, July 8, 2015 5:00 PM