!1023 fix: pthread_create时序调整

Merge pull request !1023 from Zhaotianyu/20230210pthread_create
This commit is contained in:
openharmony_ci 2023-02-10 10:31:43 +00:00 committed by Gitee
commit 2cadd65301
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;
}