------------------------------------------------------------------------------
| 784 | |
| 785 | //------------------------------------------------------------------------------ |
| 786 | void 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 | //------------------------------------------------------------------------------ |
| 804 | int vtkCommunicator::BroadcastVoidArray(void* data, vtkIdType length, int type, int srcProcessId) |