src/third_party/angle/src/libANGLE/renderer/vulkan/CommandProcessor.cpp
// TODO: https://issuetracker.google.com/170311829 - Add vk::Context so that queueCommand has
// someplace to send errors.
issuetracker.google.com/170311829 - Add vk::Context so that queueCommand has
someplace to send errors.
issuetracker . google . com / 170311829 - Add vk :: Context so that queueCommand has someplace to send errors .
void CommandProcessor::shutdown(std::thread *commandProcessorThread)
{
    vk::CommandProcessorTask endTask;
    endTask.initTask(vk::CustomTask::Exit);
    queueCommand(this, &endTask);
    if (this->getRenderer()->getFeatures().asynchronousCommandProcessing.enabled)
    {
        waitForWorkComplete(nullptr);
        if (commandProcessorThread->joinable())
        {
            commandProcessorThread->join();
        }
    }
}
void CommandProcessor :: shutdown ( std :: thread * commandProcessorThread ) { vk :: CommandProcessorTask endTask ; endTask . initTask ( vk :: CustomTask :: Exit ) ; queueCommand ( this , & endTask ) ; if ( this -> getRenderer ( ) -> getFeatures ( ) . asynchronousCommandProcessing . enabled ) { waitForWorkComplete ( nullptr ) ; if ( commandProcessorThread -> joinable ( ) ) { commandProcessorThread -> join ( ) ; } } }
TODO: https://issuetracker.google.com/170311829 - Add vk::Context so that queueCommand has
someplace to send errors.
TODO : https : // issuetracker . google . com / 170311829 - Add vk :: Context so that queueCommand has someplace to send errors .