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

Method Barrier

Parallel/Core/vtkSocketCommunicator.cxx:1043–1056  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1041
1042//------------------------------------------------------------------------------
1043void vtkSocketCommunicator::Barrier()
1044{
1045 int junk = 0;
1046 if (this->IsServer)
1047 {
1048 this->Send(&junk, 1, 1, BARRIER_TAG);
1049 this->Receive(&junk, 1, 1, BARRIER_TAG);
1050 }
1051 else
1052 {
1053 this->Receive(&junk, 1, 1, BARRIER_TAG);
1054 this->Send(&junk, 1, 1, BARRIER_TAG);
1055 }
1056}
1057
1058//------------------------------------------------------------------------------
1059int vtkSocketCommunicator::BroadcastVoidArray(void* data, vtkIdType length, int type, int root)

Callers

nothing calls this directly

Calls 2

SendMethod · 0.45
ReceiveMethod · 0.45

Tested by

no test coverage detected