提交 9efa23d4 编写于 作者: C caifuzhou

规范代码

Signed-off-by: Ncaifuzhou <caifuzhou@huawei.com>
上级 efb992e6
...@@ -415,7 +415,7 @@ struct pthread* __pthread_list_find(pthread_t thread_id, const char* info) ...@@ -415,7 +415,7 @@ struct pthread* __pthread_list_find(pthread_t thread_id, const char* info)
pid_t __pthread_gettid_np(pthread_t t) pid_t __pthread_gettid_np(pthread_t t)
{ {
__tl_lock(); __tl_lock();
struct pthread* thread = __pthread_list_find(t, "pthread_gettid"); struct pthread* thread = __pthread_list_find(t, "pthread_gettid_np");
__tl_unlock(); __tl_unlock();
return thread ? thread->tid : -1; return thread ? thread->tid : -1;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册