[SERVER-40004] Change the signature of AtomicWord::compareAndSwap to mimic the implementation Created: 06/Mar/19 Updated: 29/Oct/23 Resolved: 07/Jun/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | 4.2.1, 4.3.1 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Mira Carey | Assignee: | Shaileja Jain (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | neweng, sa-intern-tickets | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Backport Requested: |
v4.2
|
||||
| Sprint: | Service Arch 2019-06-03, Service Arch 2019-06-17 | ||||
| Participants: | |||||
| Description |
|
AtomicWord::compareAndSwap calls down to std::atomic::compare_exchange_strong. It would be a bit easier to use if its api reflected that (and returned a boolean, instead of compare_exchange_strong's expected out parameter). |
| Comments |
| Comment by Githook User [ 16/Aug/19 ] |
|
Author: {'name': 'Shelley Jain', 'email': 'shelleyjain@Shelleys-MacBook-Pro.local'}Message: (cherry picked from commit c56c3d58260b734eb0a40dabf87ee4be4823b7ed) |
| Comment by Githook User [ 07/Jun/19 ] |
|
Author: {'name': 'Shelley Jain', 'email': 'shelleyjain@Shelleys-MacBook-Pro.local'}Message: |
| Comment by Benjamin Caimano (Inactive) [ 30/May/19 ] |
|
Queuing this up for when you have time |