MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / processServerStatus

Method processServerStatus

examples/SharedMemory/PhysicsDirect.cpp:237–254  ·  view source on GitHub ↗

return non-null if there is a status, nullptr otherwise

Source from the content-addressed store, hash-verified

235
236// return non-null if there is a status, nullptr otherwise
237const SharedMemoryStatus* PhysicsDirect::processServerStatus()
238{
239 if (!m_data->m_hasStatus)
240 {
241 m_data->m_hasStatus = m_data->m_commandProcessor->receiveStatus(m_data->m_serverStatus, &m_data->m_bulletStreamDataServerToClient[0], SHARED_MEMORY_MAX_STREAM_CHUNK_SIZE);
242 }
243
244 SharedMemoryStatus* stat = 0;
245 if (m_data->m_hasStatus)
246 {
247 stat = &m_data->m_serverStatus;
248
249 postProcessStatus(m_data->m_serverStatus);
250
251 m_data->m_hasStatus = false;
252 }
253 return stat;
254}
255
256SharedMemoryCommand* PhysicsDirect::getAvailableSharedMemoryCommand()
257{

Calls 1

receiveStatusMethod · 0.45

Tested by

no test coverage detected