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

Function Create

engine/dlib/src/dlib/message.cpp:138–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 dmSpinlock::Spinlock g_MessageSpinlock;
137
138 static MessageContext* Create(uint32_t max_sockets)
139 {
140 MessageContext* ctx = new MessageContext;
141 ctx->m_Sockets.SetCapacity(max_sockets, max_sockets);
142
143 return ctx;
144 }
145
146 // Until the Create/Destroy functions are exposed:
147 // The context is created on demand, and we also need to destroy it automatically

Callers 2

ContextDestroyerMethod · 0.70
NewSocketFunction · 0.70

Calls 1

SetCapacityMethod · 0.45

Tested by

no test coverage detected