Only join a previous command thread and restart if it has exited
Only join a previous command thread and restart if it has exited

* APP_CMD_INIT_WINDOW can be called when the application hasn't fully
  shutdown, and the thread is still running. Hold a lock while we're
  inside renderdoccmd() so that we know if the thread has exited or not.
* This would be easier if android had pthread_tryjoin_np()...

TurtleRockStudios/renderdoc_public,etnlGD/renderdoc,cgmb/renderdoc,baldurk/renderdoc,TurtleRockStudios/renderdoc_public,Zorro666/renderdoc,TurtleRockStudios/renderdoc_public,googlestadia/renderdoc,cgmb/renderdoc,baldurk/renderdoc,michaelrgb/renderdoc,googlestadia/renderdoc,baldurk/renderdoc,googlestadia/renderdoc,cgmb/renderdoc,etnlGD/renderdoc,TurtleRockStudios/renderdoc_public,baldurk/renderdoc,baldurk/renderdoc,TurtleRockStudios/renderdoc_public,TurtleRockStudios/renderdoc_public,Zorro666/renderdoc,etnlGD/renderdoc,michaelrgb/renderdoc,cgmb/renderdoc,etnlGD/renderdoc,etnlGD/renderdoc,Zorro666/renderdoc,Zorro666/renderdoc,cgmb/renderdoc,Zorro666/renderdoc,michaelrgb/renderdoc,michaelrgb/renderdoc,etnlGD/renderdoc,googlestadia/renderdoc,baldurk/renderdoc,michaelrgb/renderdoc,googlestadia/renderdoc,Zorro666/renderdoc,googlestadia/renderdoc