ExInitializeFastMutex

本文介绍ExInitializeFastMutex例程,用于初始化快速互斥变量,实现线程间资源的同步访问。快速互斥变量相较于传统内核互斥量提供更优的性能表现,但不支持递归获取。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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 例程。但是,一个快速互斥量不能被递归地获取,而内核互斥量则可以。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值