diff options
| author | Meco Man <[email protected]> | 2021-12-26 09:41:24 -0500 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2021-12-30 01:27:25 +0800 |
| commit | ed09f38012131850cd67c1392554653b56a37341 (patch) | |
| tree | 63336abe8aac0d277e48c7286e3f303b88b35357 /components/cplusplus/cpp11/gcc/mutex.cpp | |
| parent | 5925abce3ea69ad1e8db468c4015a6e76e217bb9 (diff) | |
[libc] remove RT_USING_LIBC
Diffstat (limited to 'components/cplusplus/cpp11/gcc/mutex.cpp')
| -rw-r--r-- | components/cplusplus/cpp11/gcc/mutex.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/cplusplus/cpp11/gcc/mutex.cpp b/components/cplusplus/cpp11/gcc/mutex.cpp index 014460ffde..e11f6d8990 100644 --- a/components/cplusplus/cpp11/gcc/mutex.cpp +++ b/components/cplusplus/cpp11/gcc/mutex.cpp @@ -34,7 +34,7 @@ namespace std get_once_functor_lock_ptr() = m_ptr; } - extern "C" + extern "C" { void once_proxy() { @@ -42,7 +42,7 @@ namespace std function<void()> once_call = std::move(once_functor); // no need to hold the lock anymore - unique_lock<mutex>* lock_ptr = get_once_functor_lock_ptr(); + unique_lock<mutex>* lock_ptr = get_once_functor_lock_ptr(); get_once_functor_lock_ptr() = nullptr; lock_ptr->unlock(); |
