下载此文档

ace reactor学习笔记(ace reactor学习笔记).doc


文档分类:外语学习 | 页数:约14页 举报非法文档有奖
1/14
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/14 下载此文档
文档列表 文档介绍
ace_reactor学)
Before watching acereactor related articles, also do it yourself knocked on reactor set into the details trap
contrast Figure 1 to see how this function works together, the interaction and impact of functions, the overall understanding of the reactor schema, and the summary of key word
get other reactor systems for quick analysis
The above is the main program and procedures, oh, these are personal opinions, because to see the code in the process to experience N to give up and look at the above process is, for the individual:), figure 2 is mainly composed of members of ACE Reactor, this is related to the important is Reactor as the user interface, to achieve specific forwarding
Figure 2. . The main member of ACE's Reactor (Implementation)
Here's a brief overview of reactor's user interface, API, and [Reactor, h]:
The way ACEReactor uses pimp, I think it should be to block the implementation of the bottom layer, to provide users with a unified user API interface, which involves only a very small
amount of logic,
The underlying implementation is held by the Reactor member variable ACEReactorlmpl ^implementation, which is the pimp technique that isolates the user API interface and the underlying implementation
It is worth noting that the open (size t max_number of handles, int restart, ACESigHandler = 0, *signal_handler = 0, ACE Timer Queue = 0 *timer_queue) this function is very useful, can not call, because in the constructor of the ACE Reactor will be the first to call a default parameter, if you need to customize these parameters, you can manually set up their own call second, which is an interesting parameter, if you do not specify the restart (which is 0), if in the process of select by blocking signal interruption, then Loop will quit, if you specify restart>0 so this case will restart the select call.
handle management function
Including register, remove, suspend, resume handles, not only the 10 event handler, but al

ace reactor学习笔记(ace reactor学习笔记) 来自淘豆网m.daumloan.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数14
  • 收藏数0 收藏
  • 顶次数0
  • 上传人sssmppp
  • 文件大小59 KB
  • 时间2022-06-14
最近更新