You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/08/10 22:51:00 UTC
[jira] [Commented] (GEODE-5567) Replace usage of
std::atomic
[ https://issues.apache.org/jira/browse/GEODE-5567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16576942#comment-16576942 ]
ASF subversion and git services commented on GEODE-5567:
--------------------------------------------------------
Commit e5c49fb00f0cbf207a5a707274293c8439235596 in geode-native's branch refs/heads/develop from [~bbender]
[ https://gitbox.apache.org/repos/asf?p=geode-native.git;h=e5c49fb ]
GEODE-5567: Replace template parameter of std::atomic with a known trivially-copyable type
Co-authored-by: Ivan Godwin <ig...@pivotal.io>
> Replace usage of std::atomic<std::chrono::time_span>
> ----------------------------------------------------
>
> Key: GEODE-5567
> URL: https://issues.apache.org/jira/browse/GEODE-5567
> Project: Geode
> Issue Type: Improvement
> Components: native client
> Reporter: Blake Bender
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> std::atomic template is only compatible with types which are "trivially copyable". std::chrono::*::time_span is _not guaranteed_ trivially copyable, and will probably change in future versions of the library, so this code needs to be refactored to use std::atomic with a template parameter that's an integral type like a long long. The "rep" field of std:: duration should work fine for this.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)