Any way to ASSERT() FAST_MUTEX owned by current thread?

Does anyone know of a way to ASSERT() that the FAST_MUTEX
is owned by the current thread?

Thanks,

Joseph

> Does anyone know of a way to ASSERT() that the FAST_MUTEX

is owned by the current thread?

It’s probably not the best idea to do this since the FAST_MUTEX structure is
meant to be opaque, but I believe this would work:

ASSERT(FastMutex->Owner != (PKTHREAD)PsGetCurrentThread())

Perhaps others know of a more elegant way?