[SERVER-41357] Add mongo::mutex polyfill Created: 29/May/19  Updated: 29/Oct/23  Resolved: 10/Jul/19

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

Type: Improvement Priority: Major - P3
Reporter: Benjamin Caimano (Inactive) Assignee: Rahul Sundararaman (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-41358 Add mongo::condition_variable polyfill Closed
is depended on by SERVER-42165 Replace standalone uses of stdx::mute... Closed
Problem/Incident
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2019-06-17, Service Arch 2019-07-01, Service Arch 2019-07-15
Participants:
Linked BF Score: 0

 Description   

This will give us the option to do additional operations on lock and use direct futex waits for locking.



 Comments   
Comment by Githook User [ 31/Oct/19 ]

Author:

{'username': 'bcaimano', 'email': 'ben.caimano@mongodb.com', 'name': 'Ben Caimano'}

Message: SERVER-41357 SERVER-41360 SERVER-43324 Add Mutex, BasicLockableAdaptor, and DiagnosticInfo

This commit backports Mutex, BasicLockableAdaptor, and DiagnosticInfo to
v4.2. These pieces came in completely in various interleaved commits.
The constituent commits partially included in this backport are listed
below. The majority of these commits are part of the "Improved
Diagnostics for Latches" epic.

Mutex:

BasicLockableAdaptor:

DiagnosticInfo:

Note that while this commit adds these pieces and integrates them into
the mongo-server codebase, it does not convert existing stdx::mutex
construction. It also does not include the updates to Interruptible that
were done as part of "Improved Diagnostics for Latches".
Branch: v4.2
https://github.com/mongodb/mongo/commit/3a05e4ce75cd03b09b52ec5943e1801c6d91279b

Comment by Githook User [ 10/Jul/19 ]

Author:

{'name': 'Benety Goh', 'username': 'benety', 'email': 'benety@mongodb.com'}

Message: SERVER-41357 fix lint
Branch: master
https://github.com/mongodb/mongo/commit/2a928a94c7568232c3aa7d27a2b0fb984ec37f22

Comment by Githook User [ 10/Jul/19 ]

Author:

{'name': 'Rahul Sundararaman', 'email': 'rahul.sundararaman@10gen.com', 'username': 'rsbballguy'}

Message: SERVER-41357 Add mongo::mutex polyfill
Branch: master
https://github.com/mongodb/mongo/commit/724c7f44aa86bab796de7f4a1474785e971f995f

Comment by Benjamin Caimano (Inactive) [ 30/May/19 ]

Queuing this up for the next sprint

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