You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Niklas Quarfot Nielsen (JIRA)" <ji...@apache.org> on 2015/10/05 23:11:26 UTC

[jira] [Updated] (MESOS-3326) Make use of C++11 atomics

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

Niklas Quarfot Nielsen updated MESOS-3326:
------------------------------------------
    Fix Version/s:     (was: 0.25.0)
                   0.26.0

> Make use of C++11 atomics
> -------------------------
>
>                 Key: MESOS-3326
>                 URL: https://issues.apache.org/jira/browse/MESOS-3326
>             Project: Mesos
>          Issue Type: Bug
>            Reporter: Neil Conway
>            Assignee: Neil Conway
>             Fix For: 0.26.0
>
>
> Now that we require C++11, we can make use of std::atomic. For example:
> * libprocess/process.cpp uses a bare int + __sync_synchronize() for "running"
> * __sync_synchronize() is used in logging.hpp in libprocess and fork.hpp in stout
> * sched/sched.cpp uses a volatile int for "running" -- this is wrong, "volatile" is not sufficient to ensure safe concurrent access
> * "volatile" is used in a few other places -- most are probably dubious but I haven't looked closely



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)