[SERVER-13913] Provide implementation of AtomicWord<T> in terms of std::atomic Created: 12/May/14  Updated: 04/Sep/14  Resolved: 18/May/14

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 2.7.1

Type: Improvement Priority: Major - P3
Reporter: Andy Schwerin Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-6018 Replace AtomicUInt with AtomicUInt32 Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

In C++11, there is a standard memory model that includes standard implementations of atomics, std::atomic. AtomicWord<T> should be implemented in terms of std::atomic<T>.



 Comments   
Comment by Githook User [ 18/May/14 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: SERVER-6018 SERVER-13913 Make AtomicWord objects non-copyable and non-movable
Branch: master
https://github.com/mongodb/mongo/commit/87b350a0eeafb6a7933e9be3ffc453b690741653

Comment by Githook User [ 18/May/14 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: SERVER-6018 SERVER-13913 Use std::atomic to implement AtomicWord in C++11 mode
Branch: master
https://github.com/mongodb/mongo/commit/3c202ac893db05e2486efd4a384c6bb49f01831f

Generated at Thu Feb 08 03:33:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.