RARunnable::RARunnable() { ACE_Reactor_Impl* imp; #if defined (ACE_HAS_EVENT_POLL) || defined (ACE_HAS_DEV_POLL) imp = new ACE_Dev_Poll_Reactor(); imp->max_notify_iterations (128); imp->restart (1); #else imp = new ACE_TP_Reactor(); imp->max_notify_iterations (128); #endif m_Reactor = new ACE_Reactor (imp, 1); }
ReactorRunnable() : m_Reactor(0), m_Connections(0), m_ThreadId(-1) { ACE_Reactor_Impl* imp = 0; #if defined (ACE_HAS_EVENT_POLL) || defined (ACE_HAS_DEV_POLL) imp = new ACE_Dev_Poll_Reactor(); imp->max_notify_iterations (128); imp->restart (1); #else imp = new ACE_TP_Reactor(); imp->max_notify_iterations(128); #endif m_Reactor = new ACE_Reactor(imp, 1); }
RARunnable() { ACE_Reactor_Impl* imp = 0; #if defined (ACE_HAS_EVENT_POLL) || defined (ACE_HAS_DEV_POLL) imp = new ACE_Dev_Poll_Reactor(); imp->max_notify_iterations(128); imp->restart(1); #else imp = new ACE_TP_Reactor(); imp->max_notify_iterations(128); #endif m_Reactor = new ACE_Reactor(imp, 1 /* 1= delete implementation so we don't have to care */); m_Acceptor = new RASocket::Acceptor; }