diff options
| author | Howard Hinnant <hhinnant@apple.com> | 2012-09-11 16:10:20 +0000 |
|---|---|---|
| committer | Howard Hinnant <hhinnant@apple.com> | 2012-09-11 16:10:20 +0000 |
| commit | ab303f7e47e0263e2d7adbc5dd7383fbf9927177 (patch) | |
| tree | 4b4b206e68d8f6c81c9e0c02cc767c2577d96392 /libcxx/include/__mutex_base | |
| parent | bc6e85cb53f2a697b6a1456fa13157bd9447eb31 (diff) | |
| download | bcm5719-llvm-ab303f7e47e0263e2d7adbc5dd7383fbf9927177.tar.gz bcm5719-llvm-ab303f7e47e0263e2d7adbc5dd7383fbf9927177.zip | |
Dimitry Andric: FreeBSD porting tweaks for PTHREAD_MUTEX_INITIALIZER and PTHREAD_COND_INITIALIZER
llvm-svn: 163626
Diffstat (limited to 'libcxx/include/__mutex_base')
| -rw-r--r-- | libcxx/include/__mutex_base | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/__mutex_base b/libcxx/include/__mutex_base index 1782e7c0b39..538e89bedf8 100644 --- a/libcxx/include/__mutex_base +++ b/libcxx/include/__mutex_base @@ -39,7 +39,7 @@ class _LIBCPP_VISIBLE mutex 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 @@ class _LIBCPP_VISIBLE condition_variable 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 |

