Insert a SmartMutex templated class into the class hierarchy, which takes a template...
authorOwen Anderson <resistor@mac.com>
Thu, 18 Jun 2009 17:53:17 +0000 (17:53 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 18 Jun 2009 17:53:17 +0000 (17:53 +0000)
commitb849a4dd4bee9ad17e295691087ce09e8d77d685
treed8db21f0b4ae2c14aefdc587b06368c5278620bd
parente53118ea32370b5c57c61ae5e8125883acfb641b
Insert a SmartMutex templated class into the class hierarchy, which takes a template parameter specifying whether this mutex
should become a no-op when not running in multithreaded mode.  Make sys::Mutex a typedef of SmartMutex<false>, to preserve source compatibility.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73709 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/System/Mutex.h
lib/System/Mutex.cpp
lib/System/Unix/Mutex.inc
lib/System/Win32/Mutex.inc