summaryrefslogtreecommitdiff
path: root/components/cplusplus/cpp11/gcc/mutex.cpp
diff options
context:
space:
mode:
authorMan, Jianting (Meco) <[email protected]>2022-01-10 14:25:46 -0500
committerGitHub <[email protected]>2022-01-10 14:25:46 -0500
commitc6852aa306d07932bc1a62118029ac332acc3fc9 (patch)
tree035cae3629b0a8a63686ffd5212162a334bfeeff /components/cplusplus/cpp11/gcc/mutex.cpp
parent1f2e93f1a39590af9a71ecc31b12045696ca6055 (diff)
parent982ad7bcbcbdc31305883803fadf63bad72dbc73 (diff)
Merge branch 'master' into removeinit
Diffstat (limited to 'components/cplusplus/cpp11/gcc/mutex.cpp')
-rw-r--r--components/cplusplus/cpp11/gcc/mutex.cpp4
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();