| 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 |
no test coverage detected