http://msdn.microsoft.com/en-us/library/aa489989.aspx
The ExInitializeFastMutex routine initializes a fast mutex variable, used to synchronize mutually exclusive access by a set of threads to a shared resource.
ExInitializeFastMutex 例程用于初始化一个快速互斥变量。
VOID
ExInitializeFastMutex(
IN PFAST_MUTEX FastMutex
);
-
Parameters
FastMutex
-
A pointer to a caller-allocated FAST_MUTEX structure, which represents the fast mutex, in the nonpaged memory pool.
Return Value
None
Comments
ExInitializeFastMutex must be called before any calls to other Ex..FastMutex 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.
要获得更好的性能,使用ExxxxFastMutex 例程,而非KeXxxMutex 例程。但是,一个快速互斥量不能被递归地获取,而内核互斥量则可以。