bool LatencyTestDeviceImpl::SetConfiguration(const OVR::LatencyTestConfiguration& configuration, bool waitFlag) { bool result = false; ThreadCommandQueue* queue = GetManagerImpl()->GetThreadQueue(); if (GetManagerImpl()->GetThreadId() != OVR::GetCurrentThreadId()) { if (!waitFlag) { return queue->PushCall(this, &LatencyTestDeviceImpl::setConfiguration, configuration); } if (!queue->PushCallAndWaitResult( this, &LatencyTestDeviceImpl::setConfiguration, &result, configuration)) { return false; } } else return setConfiguration(configuration); return result; }
bool LatencyTestDeviceImpl::GetConfiguration(OVR::LatencyTestConfiguration* configuration) { bool result = false; ThreadCommandQueue* pQueue = this->GetManagerImpl()->GetThreadQueue(); if (!pQueue->PushCallAndWaitResult(this, &LatencyTestDeviceImpl::getConfiguration, &result, configuration)) return false; return result; }
bool LatencyTestDeviceImpl::SetDisplay(const OVR::LatencyTestDisplay& display, bool waitFlag) { bool result = false; ThreadCommandQueue * queue = GetManagerImpl()->GetThreadQueue(); if (!waitFlag) { return queue->PushCall(this, &LatencyTestDeviceImpl::setDisplay, display); } if (!queue->PushCallAndWaitResult( this, &LatencyTestDeviceImpl::setDisplay, &result, display)) { return false; } return result; }
bool LatencyTestDeviceImpl::SetStartTest(const Color& targetColor, bool waitFlag) { bool result = false; ThreadCommandQueue* queue = GetManagerImpl()->GetThreadQueue(); if (!waitFlag) { return queue->PushCall(this, &LatencyTestDeviceImpl::setStartTest, targetColor); } if (!queue->PushCallAndWaitResult( this, &LatencyTestDeviceImpl::setStartTest, &result, targetColor)) { return false; } return result; }