[vtk-developers] vtkAtomic vs std::atomic, can we change yet?

Berk Geveci berk.geveci at kitware.com
Tue Oct 3 12:40:07 EDT 2017


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 at 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 at 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 at 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20171003/28a67657/attachment.html>


More information about the vtk-developers mailing list