MCPcopy Create free account
hub / github.com/cuberite/cuberite / ~cSocketThread

Method ~cSocketThread

src/OSSupport/SocketThreads.cpp:151–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149
150
151cSocketThreads::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

Callers

nothing calls this directly

Calls 3

IsValidMethod · 0.45
SendMethod · 0.45
CloseSocketMethod · 0.45

Tested by

no test coverage detected