Create a non-signaled mutex ? RRS feed

  • Question

  • Hi:

    Is there a way for to create a non-signaled mutex (KMDF driver) ? Looks like KeInitializeMutex only initializes a mutex as a signaled one.

    Thanks in advance.


    Wednesday, May 27, 2015 2:38 AM


  • you can only create it in a signaled state. If you want it not signaled, wait on the object immediately after creating it. But I have to ask, why does it need to be initially non signalled? You can alter your surrounding logic to match its initial state. You can also use a KEVENT as a mutex and control its initial state more simply

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

    Wednesday, May 27, 2015 3:09 AM