summaryrefslogtreecommitdiffstats
path: root/libcxx/src
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2012-10-30 19:06:59 +0000
committerHoward Hinnant <hhinnant@apple.com>2012-10-30 19:06:59 +0000
commit54d333a601a84e10710463e845f9f3a0cb6ca72b (patch)
tree23a7b23123e2088218754a31f9f60912626635c9 /libcxx/src
parenteac2887143bc33febe1cbbe308b2cef749e28284 (diff)
downloadbcm5719-llvm-54d333a601a84e10710463e845f9f3a0cb6ca72b.tar.gz
bcm5719-llvm-54d333a601a84e10710463e845f9f3a0cb6ca72b.zip
Rename uses of _ and __ because these are getting stepped on by macros from other system code.
llvm-svn: 167038
Diffstat (limited to 'libcxx/src')
-rw-r--r--libcxx/src/memory.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/src/memory.cpp b/libcxx/src/memory.cpp
index 3884a2b3abf..14084a5206a 100644
--- a/libcxx/src/memory.cpp
+++ b/libcxx/src/memory.cpp
@@ -125,14 +125,14 @@ static const std::size_t __sp_mut_count = 16;
static mutex mut_back[__sp_mut_count];
_LIBCPP_CONSTEXPR __sp_mut::__sp_mut(void* p) _NOEXCEPT
- : _(p)
+ : __lx(p)
{
}
void
__sp_mut::lock() _NOEXCEPT
{
- mutex& m = *static_cast<mutex*>(_);
+ mutex& m = *static_cast<mutex*>(__lx);
unsigned count = 0;
while (!m.try_lock())
{
@@ -148,7 +148,7 @@ __sp_mut::lock() _NOEXCEPT
void
__sp_mut::unlock() _NOEXCEPT
{
- static_cast<mutex*>(_)->unlock();
+ static_cast<mutex*>(__lx)->unlock();
}
__sp_mut&
OpenPOWER on IntegriCloud