| 252 | } |
| 253 | |
| 254 | static bool PublishInProgressSocket(HPool pool, Connection* connection, dmSocket::Socket* socket) |
| 255 | { |
| 256 | DM_MUTEX_SCOPED_LOCK(pool->m_Mutex); |
| 257 | if (connection->m_State == STATE_INUSE && !connection->m_WasShutdown) |
| 258 | { |
| 259 | connection->m_Socket = *socket; |
| 260 | return true; |
| 261 | } |
| 262 | return false; |
| 263 | } |
| 264 | |
| 265 | static void UnpublishInProgressSocket(HPool pool, Connection* connection, dmSocket::Socket socket) |
| 266 | { |