diff options
author | Howard Hinnant <hhinnant@apple.com> | 2010-05-24 17:49:41 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2010-05-24 17:49:41 +0000 |
commit | 128ba7191da78d948b72b9c7adddc37002b391ef (patch) | |
tree | 777573e0e91f4127e3b389583832de434bff15fc /libcxx/src/mutex.cpp | |
parent | 8a57aeca2abfbdd7659af285c10af9e82ba7783d (diff) | |
download | bcm5719-llvm-128ba7191da78d948b72b9c7adddc37002b391ef.tar.gz bcm5719-llvm-128ba7191da78d948b72b9c7adddc37002b391ef.zip |
patch by Jeffrey Yasskin for porting to Ubuntu Hardy. Everything was accepted except there were some bug fixes needed in <locale> for the __nolocale_* series. For the apple branch I ended up using templates instead of the var_args solution because it seemed both safer and more efficient.
llvm-svn: 104516
Diffstat (limited to 'libcxx/src/mutex.cpp')
-rw-r--r-- | libcxx/src/mutex.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/src/mutex.cpp b/libcxx/src/mutex.cpp index f98d7257f10..7ea734968a5 100644 --- a/libcxx/src/mutex.cpp +++ b/libcxx/src/mutex.cpp @@ -148,7 +148,7 @@ timed_mutex::unlock() recursive_timed_mutex::recursive_timed_mutex() : __count_(0), - __id_(nullptr) + __id_(0) { } @@ -197,7 +197,7 @@ recursive_timed_mutex::unlock() unique_lock<mutex> lk(__m_); if (--__count_ == 0) { - __id_ = nullptr; + __id_ = 0; lk.unlock(); __cv_.notify_one(); } |