I have a problem with a multithreaded program. I thought that the method
vtkThreadedController::Barrier() was a method
to synchronize threads by stopping them until all the threads have
reached the point were Barrier() is called.
Unfortunately, the small code provided in this message hangs. Any idea?
// This will be called by all processes
void MyMain( vtkMultiProcessController *controller, void *arg )
int myid, numProcs;
myid = controller->GetLocalProcessId();
numProcs = controller->GetNumberOfProcesses();
cout<<"Barrier Passed !"<<endl;