| 149 | |
| 150 | |
| 151 | cSocketThreads::cSocketThread::~cSocketThread() |
| 152 | { |
| 153 | m_ShouldTerminate = true; |
| 154 | |
| 155 | // Notify the thread: |
| 156 | ASSERT(m_ControlSocket2.IsValid()); |
| 157 | m_ControlSocket2.Send("a", 1); |
| 158 | |
| 159 | // Wait for the thread to finish: |
| 160 | Wait(); |
| 161 | |
| 162 | // Close the control sockets: |
| 163 | m_ControlSocket1.CloseSocket(); |
| 164 | m_ControlSocket2.CloseSocket(); |
| 165 | } |
| 166 | |
| 167 | |
| 168 |
nothing calls this directly
no test coverage detected