summaryrefslogtreecommitdiff
path: root/src/mongo/util/concurrency/mutex.h
Commit message (Collapse)AuthorAgeFilesLines
* Apply formatting per `clang-format-7.0.1`clang-format-7.0.12019-07-261-1/+1
|
* SERVER-40357 expand all calls to MONGO_DISALLOW_COPYINGBilly Donahue2019-03-281-3/+4
| | | | | | | | | | | produced by: hits="$(git grep -n MONGO_DISALLOW_COPYING | cut -d: -f1 )" for f in "$hits"; do sed -i.orig ' s/^\( *\)MONGO_DISALLOW_COPYING(\(.*\));/\1\2(const \2\&) = delete;\n\1\2\& operator=(const \2\&) = delete;/; ' $f done
* SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue2019-02-131-3/+0
| | | | | | Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-221-14/+17
|
* SERVER-28094 Remove the StaticObserverAndrew Morrow2017-02-271-7/+3
|
* SERVER-24104 Fix OSX include-what-you-use induced build failure.Andy Schwerin2016-05-171-0/+2
|
* SERVER-18579: Clang-Format - reformat code, no comment reflowMark Benvenuto2015-06-201-45/+47
|
* SERVER-19041 Simplify SimpleMutexAndrew Morrow2015-06-191-75/+33
|
* SERVER-18723 boost -> stdx for mutex, unique_lock, and lock_guardAdam Midvidy2015-06-171-3/+2
|
* SERVER-18991 Replace all usages of boost::noncopyable with ↵Andrew Morrow2015-06-161-7/+14
| | | | MONGO_DISALLOW_COPYING
* SERVER-6686 Remove all uses of boost::xtime outside of time_support.cpp.Andy Schwerin2015-06-161-34/+10
|
* SERVER-17796: Free the CriticalSection in the destructorMark Benvenuto2015-05-041-0/+5
|
* SERVER-11020 Don't overload the meaning of _DEBUG, use our own debug macroAndrew Morrow2015-03-271-1/+1
|
* SERVER-9563 Add support for config.h headerJonathan Reams2015-03-261-1/+0
|
* SERVER-17310 Make mongo::mutex a typedef of boost::mutex and remove ↵Andy Schwerin2015-03-121-39/+1
| | | | mongo::scoped_lock.
* SERVER-17310 Replace boost::*_mutex::scoped_lock with boost::lock_guard.Andy Schwerin2015-03-051-14/+2
| | | | | | | | | Achieved via grep, sed and bash: grep -Irl mutex::scoped_lock src/mongo | xargs sed -i.orig -E 's/(boost::(recursive_|timed_)?)mutex::scoped_lock/boost::lock_guard<\1mutex>/' Then, by converting boost::lock_guard to boost::unique_lock as appropriate. Finally, by removing unused mongo::mutex::try_lock.
* SERVER-16940 Change pass-by-const-ref of StringData to pass-by-valueTyler Brock2015-02-061-3/+3
|
* SERVER-15710 Add better leak sanitizer integrationAndrew Morrow2014-10-291-1/+4
|
* SERVER-14850 Remove the mutex debugger and associated undefined behaviorAndrew Morrow2014-08-121-19/+0
|
* SERVER-13256: Remove pch - qualify std in headersMark Benvenuto2014-05-191-1/+1
|
* SERVER-13264 Move Apache-licensed files to AGPLIan Whalen2014-05-161-9/+21
| | | | Also update generators.
* SERVER-12265: for SimpleMutex, change name from char* to StringDataEliot Horowitz2014-01-241-3/+3
|
* file/line for mutex name using only preprocessorGreg Studer2013-04-191-0/+9
|
* SERVER-6449 - decide which BOSOT::TIME_UTC variant to use at compile timeEliot Horowitz2012-07-141-1/+2
|
* SERVER-6340 Use TIME_UTC_ rather than TIME_UTCMathias Stearn2012-07-101-1/+1
| | | | | | This avoids a compilation failure with glibc-2.16 or any other C11 libc. Boost made the same change for boost-1.50: https://svn.boost.org/trac/boost/ticket/6940
* SERVER-5867 Use CRITICAL_SECTION for non-SRW Windows locksTad Marshall2012-05-191-7/+6
| | | | | | | | | | | Also related to SERVER-2942. The non-2008plus Windows builds was using the Microsoft Concurrency Runtime for the SimpleMutex class, but this interacts badly with the Windows memory hooking code added for SERVER-2942. A call to VirtualAlloc during thread creation would take out the SimpleMutex for RemapLock, which (through the Concurrency Runtime) make another call into VirtualAlloc, deadlocking the thread. I changed SimpleMutex to use the Win32 CRITICAL_SECTION APIs, which do not allocate memory when taking the critical section.
* fix Windows compilation issuesEric Milkie2012-04-061-2/+2
| | | | | We are using CRITICAL_SECTION as a adaptive spinlock here so we must include windows.h
* fix compilation issues on Windows -- use critical_section class to avoid ↵Eric Milkie2012-04-051-27/+20
| | | | windows.h
* Split mongo/dbtests/framework into a general unit test framework and a ↵Andy Schwerin2012-04-031-0/+3
| | | | dbtests instance.
* SERVER-5348 make dbclient.h the main C++ driver include fileEric Milkie2012-04-021-4/+0
| | | | | | | | This change fixes some #defines of common C functions so that their definitions do not leak into consumer code. I also had to change Labeler SIZE because it conflicts with Windows SIZE. pch.h is on its way out, but for now it's hanging around.
* replace assert with verify SERVER-1259Eliot Horowitz2012-03-261-7/+8
|
* fix dassertLocked for windows false positivesdwight2012-02-141-19/+7
|
* more include friendlydwight2011-12-271-8/+1
|
* bulk move of code to src/ SERVER-4551Eliot Horowitz2011-12-241-0/+228