[cfe-commits] [libcxx] r163626 - /libcxx/trunk/include/__mutex_base
Howard Hinnant
hhinnant at apple.com
Tue Sep 11 09:10:21 PDT 2012
Author: hhinnant
Date: Tue Sep 11 11:10:20 2012
New Revision: 163626
URL: http://llvm.org/viewvc/llvm-project?rev=163626&view=rev
Log:
Dimitry Andric: FreeBSD porting tweaks for PTHREAD_MUTEX_INITIALIZER and PTHREAD_COND_INITIALIZER
Modified:
libcxx/trunk/include/__mutex_base
Modified: libcxx/trunk/include/__mutex_base
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__mutex_base?rev=163626&r1=163625&r2=163626&view=diff
==============================================================================
--- libcxx/trunk/include/__mutex_base (original)
+++ libcxx/trunk/include/__mutex_base Tue Sep 11 11:10:20 2012
@@ -39,7 +39,7 @@
public:
_LIBCPP_INLINE_VISIBILITY
#ifndef _LIBCPP_HAS_NO_CONSTEXPR
- constexpr mutex() _NOEXCEPT : __m_ PTHREAD_MUTEX_INITIALIZER {}
+ constexpr mutex() _NOEXCEPT : __m_(PTHREAD_MUTEX_INITIALIZER) {}
#else
mutex() _NOEXCEPT {__m_ = (pthread_mutex_t)PTHREAD_MUTEX_INITIALIZER;}
#endif
@@ -305,7 +305,7 @@
public:
_LIBCPP_INLINE_VISIBILITY
#ifndef _LIBCPP_HAS_NO_CONSTEXPR
- constexpr condition_variable() : __cv_ PTHREAD_COND_INITIALIZER {}
+ constexpr condition_variable() : __cv_(PTHREAD_COND_INITIALIZER) {}
#else
condition_variable() {__cv_ = (pthread_cond_t)PTHREAD_COND_INITIALIZER;}
#endif
More information about the cfe-commits
mailing list