找回密码
 用户注册

QQ登录

只需一步,快速开始

查看: 3691|回复: 1

于ACE_Message_Queue类的pulse()方法

[复制链接]
发表于 2007-12-19 22:02:36 | 显示全部楼层 |阅读模式
ACE_Message_Queue类的pulse()方法不是很明白……
首先,什么叫做“迁移到到此状态(pulse状态)会使等待中的入队和出队操作立刻返回,想DEACTVATED一样;但所有PULSE状态中发起的操作和行为和在ACTIVATED状态中发起一样”?
然后就是pulse这个方法,到底有啥用处??
 楼主| 发表于 2007-12-19 22:02:41 | 显示全部楼层
找到一点,希望对楼主有用:

Douglas C. Schmidt added a new pulse() method. When called, the queue changes to the new PULSED state and any threads blocked on enqueue or dequeue operations to return immediately as if the queue had been deactivated. However, all operations initiated in the PULSED state behave as if the queue were in the ACTIVE state. See C++NPv2 chapter 6 for a description and example of this new facility
您需要登录后才可以回帖 登录 | 用户注册

本版积分规则

Archiver|手机版|小黑屋|ACE Developer ( 京ICP备06055248号 )

GMT+8, 2024-11-23 15:37 , Processed in 0.012985 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表