ExAcquireFastMutex

VOID
    ExAcquireFastMutex(

        IN PFAST_MUTEX  FastMutex
        );

ExAcquireFastMutex acquires the given fast mutex with APCs to the current thread disabled.

Parameters

FastMutex
Points to an initialized fast mutex for which the caller provides the storage.

Comments

ExAcquireFastMutex 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 with APCs to the current thread disabled until it releases the fast mutex.

Use ExTryToAcquireFastMutex if the current thread can do other work before it waits on the acquisition of the given mutex.

Any fast mutex acquired with ExAcquireFastMutex or ExTryToAcquireFastMutex must be released with ExReleaseFastMutex.

Callers of ExAcquireFastMutex must be running at IRQL < DISPATCH_LEVEL.

See Also

ExAcquireFastMutexUnsafe, ExInitializeFastMutex, ExReleaseFastMutex, ExTryToAcquireFastMutex