andy当我遇上你 2015-09-22 02:59 采纳率: 25%
浏览 1599

ACE_Dev_Poll_Reactor出现了死锁?

在ACE_Dev_Poll_Reactor::dispatch_io_event中找到了这段:

const __uint32_t err_event = EPOLLHUP | EPOLLERR;

const ACE_HANDLE handle = this->event_.data.fd;
__uint32_t revents = this->event_.events;

  // Figure out what to do first in order to make it easier to manage
        // the bit twiddling and possible pfds increment before releasing
        // the token for dispatch.
        // Note that if there's an error (such as the handle was closed
        // without being removed from the event set) the EPOLLHUP and/or
        // EPOLLERR bits will be set in revents.
eh = info->event_handler;
        if (ACE_BIT_ENABLED (revents, out_event))
        {
            disp_mask = ACE_Event_Handler::WRITE_MASK;
            callback = &ACE_Event_Handler::handle_output;
            ACE_CLR_BITS (revents, out_event);
        }
        else if (ACE_BIT_ENABLED (revents, exc_event))
        {
            disp_mask = ACE_Event_Handler::EXCEPT_MASK;
            callback = &ACE_Event_Handler::handle_exception;
            ACE_CLR_BITS (revents, exc_event);
        }
        else if (ACE_BIT_ENABLED (revents, in_event))
        {
            disp_mask = ACE_Event_Handler::READ_MASK;
            callback = &ACE_Event_Handler::handle_input;
            ACE_CLR_BITS (revents, in_event);
        }
        else if (ACE_BIT_ENABLED (revents, err_event))
        {
            this->remove_handler_i (handle,
                ACE_Event_Handler::ALL_EVENTS_MASK,
                grd,
                info->event_handler);

        出现 ACE_BIT_ENABLED (revents, err_event)条件为真,说明文件描述符发生错误或被挂断,但小弟不明白ACE_Dev_Poll_Reactor在什么情况下出现文件描述符发生错误,请各位高手帮忙看看,谢谢了!
  • 写回答

1条回答 默认 最新

  • andy当我遇上你 2015-09-23 03:43
    关注

    自顶一下,期待高手帮忙,谢谢!

    评论

报告相同问题?

悬赏问题

  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序
  • ¥15 onvif+openssl,vs2022编译openssl64
  • ¥15 iOS 自定义输入法-第三方输入法
  • ¥15 很想要一个很好的答案或提示
  • ¥15 扫描项目中发现AndroidOS.Agent、Android/SmsThief.LI!tr
  • ¥15 怀疑手机被监控,请问怎么解决和防止
  • ¥15 Qt下使用tcp获取数据的详细操作
  • ¥15 idea右下角设置编码是灰色的
  • ¥15 全志H618ROM新增分区
  • ¥15 在grasshopper里DrawViewportWires更改预览后,禁用电池仍然显示