[vtkusers] Why vtkAbstractTransform don't use vtkCriticalSection instead of vtkSimpleCriticalSection ?

David Gobbi dgobbi at imaging.robarts.ca
Tue Aug 10 21:03:54 EDT 2004


On Tue, 10 Aug 2004, [iso-8859-1] REGAT-BARREL Aurélien wrote:

> Hi David,
> If the goal of vtkSimpleCriticalSection is to save memory, I don't understand the role of vtkCriticalSection since the only difference between them I can see is that vtkCriticalSection inherits from vtkObject.
> Why not replace vtkCriticalSection by vtkSimpleCriticalSection ?

A vtkSimpleCriticalSection takes up a few bytes less (100 or so?) than a
vtkCriticalSection, specifically because it is not a subclass of vtkObject.

 - David


> David Gobbi <dgobbi at imaging.robarts.ca> wrote:
> Hi Aurélien,
>
> What is the advantage of using a vtkCriticalSection instead? I wrote
> the code with vtkSimpleCriticalSection to save a bit of memory.
>
> - David
>
>
>
> Aurélien REGAT-BARREL
>
> ---------------------------------
> Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
> Créez votre Yahoo! Mail
>
> Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour dialoguer instantanément avec vos amis.Téléchargez GRATUITEMENT ici !




More information about the vtkusers mailing list