vtkThreadedController Class Reference
#include <vtkThreadedController.h>
Inheritance diagram for vtkThreadedController:
[legend]Collaboration diagram for vtkThreadedController:
[legend]List of all members.
Detailed Description
Allows communication between running threads.
vtkThreadedController uses a vtkMultiThreader to spawn threads. The communication is accomplished using a vtkSharedMemoryCommunicator. The RMI communicator is identical to the user communicator. Note that each thread gets its own vtkThreadedController to accomplish thread safety.
- See also:
- vtkMultiProcessController vtkMultiThreader vtkSharedMemoryCommunicator vtkInputPort vtkOutputPort
- Created by:
-
- CVS contributions (if > 5%):
- Martin, Ken (76%)
- Geveci, Berk (15%)
- CVS logs (CVSweb):
.cxx (/Parallel/vtkThreadedController
.cxx)
.h (/Parallel/vtkThreadedController
.h)
- Tests:
- vtkThreadedController (Tests)
Definition at line 51 of file vtkThreadedController.h.
Member Typedef Documentation
Constructor & Destructor Documentation
vtkThreadedController::vtkThreadedController |
( |
|
) |
[protected] |
|
Member Function Documentation
|
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkMultiProcessController. |
virtual const char* vtkThreadedController::GetClassName |
( |
|
) |
[virtual] |
|
int vtkThreadedController::IsTypeOf |
( |
const char * |
type |
) |
[static] |
|
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkMultiProcessController. |
virtual int vtkThreadedController::IsA |
( |
const char * |
type |
) |
[virtual] |
|
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkMultiProcessController. |
void vtkThreadedController::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
[virtual] |
|
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkMultiProcessController. |
virtual void vtkThreadedController::Initialize |
( |
int * |
argc, |
|
|
char *** |
argv, |
|
|
int |
|
|
) |
[inline, virtual] |
|
virtual void vtkThreadedController::Initialize |
( |
int * |
argc, |
|
|
char *** |
argv |
|
) |
[virtual] |
|
|
This method is for setting up the processes. |
virtual void vtkThreadedController::Finalize |
( |
|
) |
[virtual] |
|
virtual void vtkThreadedController::Finalize |
( |
int |
|
) |
[inline, virtual] |
|
virtual int vtkThreadedController::GetLocalProcessId |
( |
|
) |
[virtual] |
|
|
This method returns an integer from 0 to (NumberOfProcesses-1) indicating which process we are in. Note: The correct controller is passed as an argument to the initial function (SingleMethod/MultipleMethod). Calling this method on another controller may give wrong results.
Reimplemented from vtkMultiProcessController. |
virtual void vtkThreadedController::SingleMethodExecute |
( |
|
) |
[virtual] |
|
|
Execute the SingleMethod (as define by SetSingleMethod) using this->NumberOfProcesses processes. This will only return when all the processes finish executing their methods.
Implements vtkMultiProcessController. |
virtual void vtkThreadedController::MultipleMethodExecute |
( |
|
) |
[virtual] |
|
|
Execute the MultipleMethods (as define by calling SetMultipleMethod for each of the required this->NumberOfProcesses methods) using this->NumberOfProcesses processes.
Implements vtkMultiProcessController. |
virtual void vtkThreadedController::Barrier |
( |
|
) |
[virtual] |
|
virtual void vtkThreadedController::CreateOutputWindow |
( |
|
) |
[virtual] |
|
|
This method can be used to tell the controller to create a special output window in which all messages are preceded by the process id.
Implements vtkMultiProcessController. |
void vtkThreadedController::CreateProcessControllers |
( |
|
) |
[protected] |
|
void vtkThreadedController::Start |
( |
int |
threadIdx |
) |
[protected] |
|
|
First method called after threads are spawned. |
void vtkThreadedController::ResetControllers |
( |
|
) |
[protected] |
|
VTK_THREAD_RETURN_TYPE vtkThreadedController::vtkThreadedControllerStart |
( |
void * |
arg |
) |
[static, protected] |
|
void vtkThreadedController::WaitForPreviousBarrierToEnd |
( |
|
) |
[static, protected] |
|
void vtkThreadedController::BarrierStarted |
( |
|
) |
[static, protected] |
|
void vtkThreadedController::BarrierEnded |
( |
|
) |
[static, protected] |
|
void vtkThreadedController::SignalNextThread |
( |
|
) |
[static, protected] |
|
void vtkThreadedController::InitializeBarrier |
( |
|
) |
[static, protected] |
|
void vtkThreadedController::WaitForNextThread |
( |
|
) |
[static, protected] |
|
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data.
Reimplemented from vtkMultiProcessController. |
Member Data Documentation
The documentation for this class was generated from the following file: