VTKFIG  0.20.20181114
Easy VTK based in situ visualization
MainThread * vtkfig::internals::MainThread::CreateMainThread ( )
staticprivate

Start thread.

Create a singleton object. We need only as vtk is not thread save.

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

45  {
46  if (mainthread==0)
47  mainthread=new MainThread();
48  std::atexit(DeleteMainThread);
49  return mainthread;
50  }
static MainThread * mainthread
"This" thread
static void DeleteMainThread()
Kill the thread.

+ Here is the call graph for this function: