------------------------------------------------------------------------------
| 580 | |
| 581 | //------------------------------------------------------------------------------ |
| 582 | void vtkMultiProcessController::TriggerBreakRMIs() |
| 583 | { |
| 584 | int idx, num; |
| 585 | |
| 586 | if (this->BroadcastTriggerRMI == 1) |
| 587 | { |
| 588 | this->BroadcastTriggerRMIOnAllChildren(nullptr, 0, BREAK_RMI_TAG); |
| 589 | return; |
| 590 | } |
| 591 | |
| 592 | if (this->GetLocalProcessId() != 0) |
| 593 | { |
| 594 | vtkErrorMacro("Break should be triggered from process 0."); |
| 595 | return; |
| 596 | } |
| 597 | |
| 598 | num = this->GetNumberOfProcesses(); |
| 599 | for (idx = 1; idx < num; ++idx) |
| 600 | { |
| 601 | this->TriggerRMI(idx, nullptr, 0, BREAK_RMI_TAG); |
| 602 | } |
| 603 | } |
| 604 | |
| 605 | //------------------------------------------------------------------------------ |
| 606 | int vtkMultiProcessController::ProcessRMIs() |