summaryrefslogtreecommitdiffstats
path: root/source/OSSupport
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-29 21:43:34 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-29 21:43:34 +0200
commit70546f25a0209c2b61dadf61840dfa628a9a75b7 (patch)
treeca7d9e9742dcdd1b2d5f9aa7859d2e3ea99f4fad /source/OSSupport
parentAnvilStats: can draw biome map (method 1) (diff)
downloadcuberite-70546f25a0209c2b61dadf61840dfa628a9a75b7.tar
cuberite-70546f25a0209c2b61dadf61840dfa628a9a75b7.tar.gz
cuberite-70546f25a0209c2b61dadf61840dfa628a9a75b7.tar.bz2
cuberite-70546f25a0209c2b61dadf61840dfa628a9a75b7.tar.lz
cuberite-70546f25a0209c2b61dadf61840dfa628a9a75b7.tar.xz
cuberite-70546f25a0209c2b61dadf61840dfa628a9a75b7.tar.zst
cuberite-70546f25a0209c2b61dadf61840dfa628a9a75b7.zip
Diffstat (limited to '')
-rw-r--r--source/OSSupport/SocketThreads.cpp21
-rw-r--r--source/OSSupport/SocketThreads.h1
2 files changed, 0 insertions, 22 deletions
diff --git a/source/OSSupport/SocketThreads.cpp b/source/OSSupport/SocketThreads.cpp
index dd961770d..13336a0c4 100644
--- a/source/OSSupport/SocketThreads.cpp
+++ b/source/OSSupport/SocketThreads.cpp
@@ -530,8 +530,6 @@ void cSocketThreads::cSocketThread::Execute(void)
}
WriteToSockets(&fdWrite);
-
- RemoveClosedSockets();
} // while (!mShouldTerminate)
}
@@ -681,22 +679,3 @@ void cSocketThreads::cSocketThread::WriteToSockets(fd_set * a_Write)
-
-void cSocketThreads::cSocketThread::RemoveClosedSockets(void)
-{
- // Removes sockets that have been queued for closing from m_Slots[]
-
- cCSLock Lock(m_Parent->m_CS);
- for (int i = m_NumSlots - 1; i >= 0; --i)
- {
- if (!m_Slots[i].m_ShouldClose || !m_Slots[i].m_Outgoing.empty())
- {
- continue;
- }
- m_Slots[i] = m_Slots[--m_NumSlots];
- } // for i - m_Slots[]
-}
-
-
-
-
diff --git a/source/OSSupport/SocketThreads.h b/source/OSSupport/SocketThreads.h
index 974270a11..ecbac3aeb 100644
--- a/source/OSSupport/SocketThreads.h
+++ b/source/OSSupport/SocketThreads.h
@@ -149,7 +149,6 @@ private:
void PrepareSet (fd_set * a_Set, cSocket::xSocket & a_Highest); // Puts all sockets into the set, along with m_ControlSocket1
void ReadFromSockets(fd_set * a_Read); // Reads from sockets indicated in a_Read
void WriteToSockets (fd_set * a_Write); // Writes to sockets indicated in a_Write
- void RemoveClosedSockets(void); // Removes sockets that have closed from m_Slots[]
} ;
typedef std::list<cSocketThread *> cSocketThreadList;