mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joris Van Remoortere (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MESOS-3326) Make use of C++11 atomics
Date Wed, 21 Oct 2015 15:07:27 GMT

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

Joris Van Remoortere updated MESOS-3326:
----------------------------------------
    Labels: mesosphere  (was: )

> 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
>              Labels: mesosphere
>             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)

Mime
View raw message