!1023 fix: pthread_create时序调整
Merge pull request !1023 from Zhaotianyu/20230210pthread_create
This commit is contained in:
commit
2cadd65301
|
@ -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