VTKFIG  0.20.20181114
Easy VTK based in situ visualization
void vtkfig::internals::MainThread::Start ( void  )
private

Spawn parallel thread for rendering or communication.

Definition at line 941 of file vtkfigMainThread-2018-01-26-2205.cxx.

942  {
943  if (connection_open)
944  this->thread=std::make_shared<std::thread>(CommunicatorThread,this);
945  else
946  this->thread=std::make_shared<std::thread>(RenderThread,this);
947 
948  do
949  {
950  std::this_thread::sleep_for (std::chrono::milliseconds(10));
951  }
952  while (!this->running_multithreaded);
953  }
std::shared_ptr< std::thread > thread
std::thread which runs rendering resp. communication
bool connection_open
State of connection to client.
static void RenderThread(MainThread *)
Callback function for render thread.
static void CommunicatorThread(MainThread *)
Callback function for communicator thread.
bool running_multithreaded
Thread state.

+ Here is the call graph for this function: