[7730] Some optimizantion and code style. Author: zhenya

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-04-29 00:26:07 -05:00
1 parent 9dd4b8c985
commit de11b9e901
60 files changed
+264 -264

No files matched your search

+4 -4
View File
@@ -134,7 +134,7 @@ class ReactorRunnable : protected ACE_Task_Base
if (m_NewSockets.empty ())
return;
for (SocketSet::iterator i = m_NewSockets.begin (); i != m_NewSockets.end (); ++i)
for (SocketSet::const_iterator i = m_NewSockets.begin (); i != m_NewSockets.end (); ++i)
{
WorldSocket* sock = (*i);
@@ -158,7 +158,7 @@ class ReactorRunnable : protected ACE_Task_Base
ACE_ASSERT (m_Reactor);
SocketSet::iterator i, t;
SocketSet::const_iterator i, t;
while (!m_Reactor->reactor_event_loop_done ())
{
@@ -176,14 +176,14 @@ class ReactorRunnable : protected ACE_Task_Base
if ((*i)->Update () == -1)
{
t = i;
i++;
++i;
(*t)->CloseSocket ();
(*t)->RemoveReference ();
--m_Connections;
m_Sockets.erase (t);
}
else
i++;
++i;
}
}