!1024 【回合monthly_1018】fix: pthread_create时序调整

Merge pull request !1024 from Zhaotianyu/cherry-pick-1676023301
This commit is contained in:
openharmony_ci 2023-02-11 08:03:47 +00:00 committed by Gitee
commit a5dffd7cdb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 2 deletions

View File

@ -221,10 +221,10 @@ int pthread_create(pthread_t *thread, const pthread_attr_t *attr,
LOS_ListAdd(&g_pthreadListHead, &pthreadData->threadList);
LOS_IntRestore(intSave);
(void)LOS_TaskResume(taskID);
*thread = (pthread_t)taskID;
(void)LOS_TaskResume(taskID);
return 0;
}