[SERVER-41130] Add support for bitwise operations on AtomicWord Created: 13/May/19  Updated: 29/Oct/23  Resolved: 22/May/19

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

Type: New Feature Priority: Major - P3
Reporter: Mira Carey Assignee: Mira Carey
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2019-05-20, Service Arch 2019-06-03
Participants:

 Description   

AtomicWord offers a slightly less dangerous, doesn't require lint, access to std::atomic's.

While that interface currently doesn't offer access to bit operations, the extra cognitive load to understand those correctly is substantially simpler than the main thing AtomicWord hides (access to non sequential consistency).

Thus, let's add bitwise operators for unsigned atomic words



 Comments   
Comment by Githook User [ 22/May/19 ]

Author:

{'email': 'jcarey@argv.me', 'name': 'Jason Carey', 'username': 'hanumantmk'}

Message: SERVER-41130 Add support for bitops in AtomicWord

AtomicWord offers a slightly less dangerous, doesn't require lint,
access to std::atomic's.

While that interface currently doesn't offer access to bit operations,
the extra cognitive load to understand those correctly is substantially
simpler than the main thing AtomicWord hides (access to non sequential
consistency).

Thus, let's add bitwise operators for unsigned atomic words
Branch: master
https://github.com/mongodb/mongo/commit/efd0267a75f0d8de8a451f77b0447484f7d0ee48

Generated at Thu Feb 08 04:56:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.