[SERVER-60711] Remove SimpleMutex Created: 14/Oct/21 Updated: 06/Dec/22 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Mark Benvenuto | Assignee: | Backlog - Service Architecture |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | sa-remove-fv-backlog-22 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Service Arch
|
| Participants: |
| Description |
|
Remove SimpleMutex as it no longer provides a benefit over std::mutex on Windows. It used to be that SimpleMutex was better then boost::mutex. Since boost::mutex is no longer used in the code base, SimpleMutex no longer provides a benefit. On Windows, std::mutex is implemented with the more efficient Slim Reader/Write Lock instead of CriticalSection.
It is located in src/mongo/util/concurrency/mutex.h. |