!1024 【回合monthly_1018】fix: pthread_create时序调整
Merge pull request !1024 from Zhaotianyu/cherry-pick-1676023301
This commit is contained in:
commit
a5dffd7cdb
|
@ -221,10 +221,10 @@ int pthread_create(pthread_t *thread, const pthread_attr_t *attr,
|
||||||
LOS_ListAdd(&g_pthreadListHead, &pthreadData->threadList);
|
LOS_ListAdd(&g_pthreadListHead, &pthreadData->threadList);
|
||||||
LOS_IntRestore(intSave);
|
LOS_IntRestore(intSave);
|
||||||
|
|
||||||
(void)LOS_TaskResume(taskID);
|
|
||||||
|
|
||||||
*thread = (pthread_t)taskID;
|
*thread = (pthread_t)taskID;
|
||||||
|
|
||||||
|
(void)LOS_TaskResume(taskID);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue