[vtkusers] What's the real meaning of Finalize()

Johan Hatlelid ban4n at online.no
Thu May 8 05:20:17 EDT 2003


Hi!

I'm trying to figure out what vtkThreadedController::Finalize() actually does.
Does it clean up or set up?

Some paste here, from the 4.0 manual:
*************************************

------------------------------------------------------------------------------
--
virtual void vtkMultiProcessController::Finalize  (      )    [pure virtual]

This method is for cleaning up. If a subclass needs to clean up process 
communication (i.e. MPI) it would over ride this method.

Reimplemented in vtkMPIController, vtkSocketController, and 
vtkThreadedController. 
------------------------------------------------------------------------------
--


"Cleaning up", it's what Finalize() is for. 
Then why does vtkThreadedController() say it somethinw quite different:


------------------------------------------------------------------------------
--
virtual void vtkThreadedController::Finalize  (      )    [inline, virtual]
 
This method is for setting up the processes.

Reimplemented from vtkMultiProcessController. 
------------------------------------------------------------------------------
--
------------------------------------------------------------------------------
--
virtual void vtkThreadedController::Initialize  (   int *     argc, char ***   
arcv)  [virtual]
 
This method is for setting up the processes. 
------------------------------------------------------------------------------
--


Clearly there must be something wrong here, both Initialize and Finalize says 
they're for setting up the processes.

-
Johan Hatlelid




More information about the vtkusers mailing list