int WorldSocket::schedule_wakeup_output(GuardType& g) { if (m_OutActive) { return 0; } m_OutActive = true; g.release(); if (reactor()->schedule_wakeup (this, ACE_Event_Handler::WRITE_MASK) == -1) { sLog.outError("WorldSocket::schedule_wakeup_output"); return -1; } return 0; }
int WorldSocket::cancel_wakeup_output(GuardType& g) { if (!m_OutActive) { return 0; } m_OutActive = false; g.release(); if (reactor()->cancel_wakeup (this, ACE_Event_Handler::WRITE_MASK) == -1) { // would be good to store errno from reactor with errno guard sLog.outError("WorldSocket::cancel_wakeup_output"); return -1; } return 0; }