summaryrefslogtreecommitdiff
path: root/components/cplusplus/cpp11/armclang/thread.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/armclang/thread.cpp
parent1f2e93f1a39590af9a71ecc31b12045696ca6055 (diff)
parent982ad7bcbcbdc31305883803fadf63bad72dbc73 (diff)
Merge branch 'master' into removeinit
Diffstat (limited to 'components/cplusplus/cpp11/armclang/thread.cpp')
-rw-r--r--components/cplusplus/cpp11/armclang/thread.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/cplusplus/cpp11/armclang/thread.cpp b/components/cplusplus/cpp11/armclang/thread.cpp
index 6b38d9b3a7..e10ffb9cfe 100644
--- a/components/cplusplus/cpp11/armclang/thread.cpp
+++ b/components/cplusplus/cpp11/armclang/thread.cpp
@@ -95,8 +95,8 @@ extern "C" unsigned __ARM_TPL_thread_hw_concurrency()
extern "C" int __ARM_TPL_tls_create(__ARM_TPL_tls_key *__key,
void (*__at_exit)(void *))
{
- pthread_key_t key;
-
+ pthread_key_t key;
+
if (pthread_key_create(&key, __at_exit) == 0)
{
*__key = key;