You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2017/03/01 21:44:45 UTC

[jira] [Resolved] (KUDU-838) Add an Atomic pointer template class

     [ https://issues.apache.org/jira/browse/KUDU-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Todd Lipcon resolved KUDU-838.
------------------------------
       Resolution: Won't Fix
    Fix Version/s: n/a

Now that we have C++11 std::atomic I don't think this is that relevant

> Add an Atomic pointer template class
> ------------------------------------
>
>                 Key: KUDU-838
>                 URL: https://issues.apache.org/jira/browse/KUDU-838
>             Project: Kudu
>          Issue Type: Task
>          Components: util
>    Affects Versions: Private Beta
>            Reporter: Todd Lipcon
>             Fix For: n/a
>
>
> We have some places where we do atomic operations on pointers, but today the code is rather ugly, involving reinterpret_casts to/from 'AtomicWord'. Would be nicer to offer a templated atomic pointer wrapper. See http://gerrit.sjc.cloudera.com:8080/?l=159#/c/7047/2/src/kudu/tablet/tablet_metadata.cc for an example.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)