MCPcopy Create free account
hub / github.com/cuberite/cuberite / NotifyWrite

Method NotifyWrite

src/OSSupport/SocketThreads.cpp:95–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93
94
95void 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

Callers 3

SendResponseMethod · 0.80
ExecuteMethod · 0.80
NotifyConnectionWriteMethod · 0.80

Calls 5

beginMethod · 0.80
endMethod · 0.80
IsValidMethod · 0.45
SendMethod · 0.45

Tested by

no test coverage detected