The ExInitializeFastMutex routine initializes a fast mutex variable, used to synchronize mutually exclusive access by a set of threads to a shared resource.
- FastMutex [out]
A pointer to a caller-allocated FAST_MUTEX structure, which represents the fast mutex, in the nonpaged memory pool.
ExInitializeFastMutex must be called before any calls to other ExXxxFastMutex routines occur.
Although the caller supplies the storage for the given fast mutex, the FAST_MUTEX structure is opaque: that is, its members are reserved for system use.
For better performance, use the ExXxxFastMutex routines instead of the KeXxxMutex routines. However, a fast mutex cannot be acquired recursively, as a kernel mutex can.
For more information about fast mutexes, see Fast Mutexes and Guarded Mutexes.
|Available starting with Windows 2000.|