| 93 | |
| 94 | |
| 95 | void cSocketThreads::NotifyWrite(const cCallback * a_Client) |
| 96 | { |
| 97 | // Notifies the thread responsible for a_Client that the client has something to write |
| 98 | |
| 99 | cCSLock Lock(m_CS); |
| 100 | for (cSocketThreadList::iterator itr = m_Threads.begin(); itr != m_Threads.end(); ++itr) |
| 101 | { |
| 102 | if ((*itr)->NotifyWrite(a_Client)) |
| 103 | { |
| 104 | return; |
| 105 | } |
| 106 | } // for itr - m_Threads[] |
| 107 | |
| 108 | // Cannot assert - this normally happens if a client disconnects and has pending packets, the cServer::cNotifyWriteThread will call this on invalid clients too |
| 109 | // ASSERT(!"Notifying write to an unknown client"); |
| 110 | } |
| 111 | |
| 112 | |
| 113 |
no test coverage detected