Skip to content

Commit 9751e7a

Browse files
wang-binHermanChen
authored andcommitted
fix[mpp_thread]: Fix thread name is not set
#887 Change-Id: I96937a2fb42cb40f60d432ead3c826b6d89bee23 Signed-off-by: Herman Chen <[email protected]>
1 parent 32767f3 commit 9751e7a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

osal/mpp_thread.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,10 @@ void mpp_thread_start(MppThread *thread)
6363
if (mpp_thread_get_status(thread, THREAD_WORK) == MPP_THREAD_UNINITED) {
6464
mpp_thread_set_status(thread, MPP_THREAD_RUNNING, THREAD_WORK);
6565
if (0 == pthread_create(&thread->thd, &attr, thread->func, thread->ctx)) {
66-
#ifndef __linux__
6766
int ret = pthread_setname_np(thread->thd, thread->name);
6867
if (ret) {
6968
mpp_err("thread %p setname %s failed\n", thread->func, thread->name);
7069
}
71-
#endif
7270
thread_dbg(THREAD_DBG_FUNC, "thread %s %p context %p create success\n",
7371
thread->name, thread->func, thread->ctx);
7472
} else {

0 commit comments

Comments
 (0)