VOID
ExAcquireFastMutexUnsafe(
IN PFAST_MUTEX FastMutex
);
ExAcquireFastMutexUnsafe acquires the given fast mutex for the current thread.
Parameters
FastMutex
Points to an initialized fast mutex for which the caller provides the storage.
Comments
ExAcquireFastMutexUnsafe puts the caller into a wait state if the given fast mutex cannot be acquired immediately. Otherwise, the caller is given ownership of the fast mutex and exclusive access to the resource it protects until it releases the fast mutex.
This routine can be called only if APCs will not be delivered to the current thread while it is holding the fast mutex. For example, while running within a critical region, APCs to the current thread are disabled.
Any fast mutex acquired with ExAcquireFastMutexUnsafe must be released with ExReleaseFastMutexUnsafe.
Callers of ExAcquireFastMutexUnsafe must be running at IRQL < DISPATCH_LEVEL.
See Also
ExAcquireFastMutex, ExInitializeFastMutex, ExReleaseFastMutexUnsafe, KeEnterCriticalRegion, KeLeaveCriticalRegion