return non-null if there is a status, nullptr otherwise
| 235 | |
| 236 | // return non-null if there is a status, nullptr otherwise |
| 237 | const 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 | |
| 256 | SharedMemoryCommand* PhysicsDirect::getAvailableSharedMemoryCommand() |
| 257 | { |
no test coverage detected