<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Monotype Corsiva";
        panose-1:3 1 1 1 1 2 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p
        {margin-right:0in;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {font-family:Arial;
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
11.0pt;font-family:Arial;color:blue'>One advantage of vtkCriticalSection is
that it is accessible from the script level. However, since I intended it as a
higher-performance alternative to vtkMutexLock, that’s clearly a weak
argument. As for why vtkSimpleCriticalSection is a separate non-vtkObject-derived
class, I suppose I was mimicking the architecture of vtkMutexLock, which has a
similar structure. It’s been a few years, so that’s the best
explanation I can give right now.</span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
11.0pt;font-family:Arial;color:blue'> </span></font></p>
<div>
<div>
<p style='margin:0in;margin-bottom:.0001pt'><strong><b><font size=6 color=blue
face="Monotype Corsiva"><span style='font-size:24.0pt;font-family:"Monotype Corsiva";
color:blue;font-weight:normal'>Chris</span></font></b></strong></p>
<p class=MsoPlainText><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;color:blue'>--<br>
Christopher R. Volpe,
Ph.D. <br>
Senior
Scientist
Email: <a href="mailto:cvolpe@ara.com">cvolpe@ara.com</a><br>
Applied Research Associates,
Inc.
Voice: </span></font><font color=blue><span style='color:blue'>919-582-3380<br>
</span></font><font color=blue><span style='color:blue'>8540 Colonnade Center
Dr., Ste 301</span></font><font color=blue><span style='color:blue'>
Fax: 919-878-3672<br>
</span></font><font color=blue><span style='color:blue'>Raleigh</span></font><font
color=blue><span style='color:blue'>, </span></font><font color=blue><span
style='color:blue'>NC</span></font><font color=blue><span style='color:blue'>
</span></font><font color=blue><span style='color:blue'>27615</span></font><font
color=blue><span style='color:blue'>
Web: <a href="http://www.ara.com/">www.ara.com</a></span></font></p>
</div>
<div>
<p><font size=3 face="Courier New"><span style='font-size:12.0pt;font-family:
"Courier New"'> </span></font></p>
</div>
</div>
<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> vtkusers-bounces@vtk.org
[mailto:vtkusers-bounces@vtk.org] <b><span style='font-weight:bold'>On Behalf
Of </span></b>REGAT-BARREL Aurélien<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, August 11, 2004
3:48 AM<br>
<b><span style='font-weight:bold'>To:</span></b> David Gobbi<br>
<b><span style='font-weight:bold'>Cc:</span></b> VTK<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [vtkusers] Why
vtkAbstractTransform don't use vtkCriticalSectioninstead of vtkSimpleCriticalSection
?</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
<div>
<p class=MsoNormal><b><i><font size=3 face="Times New Roman"><span
style='font-size:12.0pt;font-weight:bold;font-style:italic'>David Gobbi
<dgobbi@imaging.robarts.ca></span></font></i></b> wrote:</p>
</div>
<blockquote style='border:none;border-left:solid #1010FF 1.5pt;padding:0in 0in 0in 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-bottom:5.0pt'>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>A
vtkSimpleCriticalSection takes up a few bytes less (100 or so?) than a<br>
vtkCriticalSection, specifically because it is not a subclass of vtkObject.</span></font></p>
</blockquote>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>My test
shows that it saves 24 bytes (52 - 28). But my question is : what is
vtkCriticalSection for ? Why don't use only vtkSimpleCriticalSection and remove
/ replace vtkCriticalSection ?</span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>When
should we use vtkCriticalSection ?</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
Aurélien REGAT-BARREL</span></font></p>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=1 width="100%" align=center>
</span></font></div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Créez gratuitement votre Yahoo! Mail avec <b><font color=red><span
style='color:red;font-weight:bold'>100 Mo de stockage !</span></font></b> <br>
<a
href="http://fr.rd.yahoo.com/mail/taglines/*http:/fr.rd.yahoo.com/evt=25917/*http:/fr.rd.yahoo.com/mail/mail_taglines_100/default/*http:/fr.benefits.yahoo.com/">Créez
votre Yahoo! Mail</a><br>
<br>
<b><font color=red><span style='color:red;font-weight:bold'>Le nouveau Yahoo!
Messenger est arrivé !</span></font></b> Découvrez toutes les nouveautés pour
dialoguer instantanément avec vos amis. <a
href="http://fr.rd.yahoo.com/mail/taglines/*http:/fr.rd.yahoo.com/evt=26111/*http:/fr.rd.yahoo.com/messenger/mail_taglines/default/*http:/fr.messenger.yahoo.com">Téléchargez
GRATUITEMENT ici !</a></span></font></p>
</div>
</div>
</body>
</html>