[CXX-167] Standardize on boost::mutex rather than custom wrappers in mutex.h Created: 31/Mar/14  Updated: 04/May/14  Resolved: 07/Apr/14

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: legacy-0.8.0

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


 Description   

src/mongo/util/concurrency/mutex.h describes several mutex classes that are similar to boost::mutex, or implemented in terms of it.

There is no clear advantage to these classes in the C++ driver codebase, and we could possibly standardize on boost::mutex here. Risk is that it creates a lot of point divergences from the server code, upside is that we drop one more set of platform dependent code and push that out to boost (or C++11 when we pick that up).



 Comments   
Comment by Githook User [ 09/Apr/14 ]

Author:

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

Message: CXX-167 Fix rogue quote character

Quote character was introduced in earler CXX-167 check-in. Not
sure how things managed to build like this, but they did.
Branch: legacy
https://github.com/mongodb/mongo-cxx-driver/commit/21a7441b1f3385fcc7dbf2dc4b73d03bac7f9e70

Comment by Githook User [ 09/Apr/14 ]

Author:

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

Message: CXX-167 Fix rogue quote character

Quote character was introduced in earler CXX-167 check-in. Not
sure how things managed to build like this, but they did.
Branch: legacy
https://github.com/mongodb/mongo-cxx-driver/commit/21a7441b1f3385fcc7dbf2dc4b73d03bac7f9e70

Comment by Andrew Morrow (Inactive) [ 07/Apr/14 ]

Adding to legacy-0.8 as it was felt that this was an improvement.

Comment by Githook User [ 07/Apr/14 ]

Author:

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

Message: CXX-167 Standardize driver on boost mutex rather than legacy wrappers
Branch: legacy
https://github.com/mongodb/mongo-cxx-driver/commit/2d230733f673a65a1f04f99ec69e54dce4c6cfde

Comment by Andrew Morrow (Inactive) [ 31/Mar/14 ]

https://github.com/mongodb/mongo-cxx-driver/pull/45

Generated at Wed Feb 07 21:58:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.