MCPcopy Create free account
hub / github.com/defold/defold / ReleaseSocket

Function ReleaseSocket

engine/dlib/src/dlib/message.cpp:259–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257 }
258
259 static void ReleaseSocket(MessageSocket* s)
260 {
261 {
262 DM_SPINLOCK_SCOPED_LOCK(g_MessageSpinlock);
263 --s->m_RefCount;
264
265 if (s->m_RefCount > 0)
266 {
267 return;
268 }
269 }
270 DisposeSocket(s);
271 }
272
273 static MessageSocket* AcquireSocket(HSocket socket)
274 {

Callers 3

HasMessagesFunction · 0.85
PostFunction · 0.85
InternalDispatchFunction · 0.85

Calls 1

DisposeSocketFunction · 0.85

Tested by

no test coverage detected