MCPcopy Create free account
hub / github.com/Kitware/VTK / Barrier

Method Barrier

Parallel/Core/vtkCommunicator.cxx:786–801  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

784
785//------------------------------------------------------------------------------
786void vtkCommunicator::Barrier()
787{
788 int junk = 0;
789 if (this->LocalProcessId == 0)
790 {
791 for (int i = 1; i < this->NumberOfProcesses; i++)
792 {
793 this->Receive(&junk, 1, i, BARRIER_TAG);
794 }
795 }
796 else
797 {
798 this->Send(&junk, 1, 0, BARRIER_TAG);
799 }
800 this->Broadcast(&junk, 1, 0);
801}
802
803//------------------------------------------------------------------------------
804int vtkCommunicator::BroadcastVoidArray(void* data, vtkIdType length, int type, int srcProcessId)

Callers

nothing calls this directly

Calls 3

ReceiveMethod · 0.95
SendMethod · 0.95
BroadcastMethod · 0.95

Tested by

no test coverage detected