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

Method ServerThread

engine/dlib/src/test/test_httpserver.cpp:148–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 assert( (_A) < (_B) );
147
148 static void ServerThread(void* user_data)
149 {
150 dmHttpServerTest* self = (dmHttpServerTest*) user_data;
151 dmAtomicStore32(&self->m_ServerStarted, 1);
152 int iter = 0;
153 while (!dmAtomicGet32(&self->m_Quit) && iter < 10000)
154 {
155 dmHttpServer::Update(self->m_Server);
156 dmTime::Sleep(1000 * 10);
157 ++iter;
158 }
159 T_ASSERT_LE(iter, 10000);
160 }
161
162 void SetUp() override
163 {

Callers

nothing calls this directly

Calls 4

dmAtomicStore32Function · 0.85
dmAtomicGet32Function · 0.85
UpdateFunction · 0.50
SleepFunction · 0.50

Tested by

no test coverage detected