VTKFIG  0.20.20181114
Easy VTK based in situ visualization
void vtkfig::internals::MainThread::SendCommand ( int  iframe,
const std::string  from,
Communicator::Command  cmd 
)
private

Communication with render thread.

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

224  {
225  if (debug_level>0)
226  cout << "mt " << from << " " << number_in_frame_list << endl;
227 
228 
229  this->cmd=cmd;
230  this->iframe=number_in_frame_list;
232  {
233  std::unique_lock<std::mutex> lock(this->mutex);
234  this->condition_variable.wait(lock);
235  }
236  else
237  Update();
238  }
Communicator::Command cmd
Communication command.
std::condition_variable condition_variable
Condition variable signalizing finished command.
std::mutex mutex
Mutex to organize communication.
void Update()
Update all figures in all frames.
int debug_level
Debug level for client communication.
bool running_multithreaded
Thread state.
int iframe
Frame number as parameter during communication.

+ Here is the call graph for this function: