Search found 3 matches

by Guy1524
Thu May 17, 2018 2:00 am
Forum: Development Help
Topic: Requesting assistance understanding KeInitializeMutex
Replies: 5
Views: 3763

Re: Requesting assistance understanding KeInitializeMutex

Thank you very much for the response. You say that the current thread is added to the wait list, however, the actual line says this:

Code: Select all

InsertTailList(&CurrentObject->Header.WaitListHead,
               &WaitBlock->WaitListEntry);
What exactly is a waitblock?
by Guy1524
Wed May 16, 2018 2:02 pm
Forum: Development Help
Topic: Requesting assistance understanding KeInitializeMutex
Replies: 5
Views: 3763

Re: Requesting assistance understanding KeInitializeMutex

Thank you for the explanation!

What confuses me now is how the ownerthread is set to the waiting thread. Is KeReleaseMutex supposed to be queued as an APC for the waiting thread?
by Guy1524
Wed May 16, 2018 6:21 am
Forum: Development Help
Topic: Requesting assistance understanding KeInitializeMutex
Replies: 5
Views: 3763

Requesting assistance understanding KeInitializeMutex

I am using ReactOS as a reference in implementing more of wine's ntoskrnl.exe, and I am confused about mutexes / mutants. In the publicly-used KeInitializeMutex function, the mutex's OwnerThread attribute is set to its default value, NULL. This is not the case in the private KeInitializeMutant funct...