[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vtk-developers
Subject:    Re: [vtk-developers] vtkAtomic vs std::atomic, can we change yet?
From:       Berk Geveci <berk.geveci () kitware ! com>
Date:       2017-10-03 16:40:07
Message-ID: CAE32kpXEAU7Cb1=NjZ1+mZsb0NGc7UzRKeu2-7TqmLsynPCs7A () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I would vote for dropping vtkAtomic and switching to std::atomic. Assuming
that the functionality of std::atomic is a superset of vtkAtomic's

On Tue, Oct 3, 2017 at 8:40 AM, Robert Maynard <robert.maynard@kitware.com>
wrote:

> Are you asking about replacing just the
> Core/SMP/Sequential/vtkAtomic.cxx implementation or are you also
> interested in removing all the per SMP implementations?
>
> Using http://en.cppreference.com/w/cpp/compiler_support we can see
> that std::atomic is fully supported across the range of compilers we
> need to support, so a conversion over to std::atomic would be allowed.
>
> On Mon, Oct 2, 2017 at 5:14 PM, Sean McBride <sean@rogue-research.com>
> wrote:
> > Hi all,
> >
> > Now that C++11 is required in VTK, could vtkAtomic switch to using
> std::atomic instead of the current 3 implementations (gcc atomics, Apple
> atomics, or Windows atomics)?  Or are our minimum required environments not
> ready for that?
> >
> > I ask because the APIs currently used in the macOS case are deprecated,
> and thus it would be best to stop using them...
> >
> > Thanks,
> >
> > --
> > ____________________________________________________________
> > Sean McBride, B. Eng                 sean@rogue-research.com
> > Rogue Research                        www.rogue-research.com
> > Mac Software Developer              Montréal, Québec, Canada
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
> >
> > Search the list archives at: http://markmail.org/search/?q=
> vtk-developers
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/vtk-developers
> >
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtk-developers
>
>

[Attachment #5 (text/html)]

<div dir="ltr">I would vote for dropping vtkAtomic and switching to std::atomic. \
Assuming that the functionality of std::atomic is a superset of \
vtkAtomic&#39;s</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, \
Oct 3, 2017 at 8:40 AM, Robert Maynard <span dir="ltr">&lt;<a \
href="mailto:robert.maynard@kitware.com" \
target="_blank">robert.maynard@kitware.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Are you asking about replacing just the<br> \
Core/SMP/Sequential/vtkAtomic.<wbr>cxx implementation or are you also<br> interested \
in removing all the per SMP implementations?<br> <br>
Using <a href="http://en.cppreference.com/w/cpp/compiler_support" rel="noreferrer" \
target="_blank">http://en.cppreference.com/w/<wbr>cpp/compiler_support</a> we can \
see<br> that std::atomic is fully supported across the range of compilers we<br>
need to support, so a conversion over to std::atomic would be allowed.<br>
<span class="im HOEnZb"><br>
On Mon, Oct 2, 2017 at 5:14 PM, Sean McBride &lt;<a \
href="mailto:sean@rogue-research.com">sean@rogue-research.com</a>&gt; wrote:<br> \
</span><div class="HOEnZb"><div class="h5">&gt; Hi all,<br> &gt;<br>
&gt; Now that C++11 is required in VTK, could vtkAtomic switch to using std::atomic \
instead of the current 3 implementations (gcc atomics, Apple atomics, or Windows \
atomics)?   Or are our minimum required environments not ready for that?<br> &gt;<br>
&gt; I ask because the APIs currently used in the macOS case are deprecated, and thus \
it would be best to stop using them...<br> &gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; --<br>
&gt; ______________________________<wbr>______________________________<br>
&gt; Sean McBride, B. Eng                          <a \
href="mailto:sean@rogue-research.com">sean@rogue-research.com</a><br> &gt; Rogue \
Research                                    <a href="http://www.rogue-research.com" \
rel="noreferrer" target="_blank">www.rogue-research.com</a><br> &gt; Mac Software \
Developer                     Montréal, Québec, Canada<br> &gt;<br>
&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; Powered by <a href="http://www.kitware.com" rel="noreferrer" \
target="_blank">www.kitware.com</a><br> &gt;<br>
&gt; Visit other Kitware open-source projects at <a \
href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" \
target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br> \
&gt;<br> &gt; Search the list archives at: <a \
href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" \
target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br> &gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://public.kitware.com/mailman/listinfo/vtk-developers" \
rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtk-<wbr>developers</a><br>
 &gt;<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" \
target="_blank">www.kitware.com</a><br> <br>
Visit other Kitware open-source projects at <a \
href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" \
target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br> <br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" \
rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
 <br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" \
target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtk-<wbr>developers</a><br>
 <br>
</div></div></blockquote></div><br></div>



_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtk-developers



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic