feat: 支持posix 和 cmsis join能力

支持API:
  LOS_TaskJoin
  LOS_TaskDeatch
  pthread_join
  pthread_deatch
  osThreadJoin
  osThreadDetach
Close #I44V26

Signed-off-by: zhushengle <zhushengle@huawei.com>
Change-Id: Ib61e69c280eef2e4b3b79d9bba7bbd5a300c7fe4
This commit is contained in:
zhushengle
2021-09-15 16:49:01 +08:00
parent 23f634bde5
commit 96b4c460e2
38 changed files with 1084 additions and 166 deletions

View File

@@ -38,6 +38,7 @@ EVENT_CB_S g_pevent;
VOID ItSuiteLosEvent()
{
ItLosEvent001();
ItLosEvent003();
ItLosEvent004();
ItLosEvent005();
ItLosEvent006();
@@ -64,7 +65,6 @@ VOID ItSuiteLosEvent()
ItLosEvent043();
#if (LOS_KERNEL_TEST_FULL == 1)
ItLosEvent002();
ItLosEvent003();
ItLosEvent011();
ItLosEvent012();
ItLosEvent015();

View File

@@ -57,7 +57,7 @@ static UINT32 Testcase(VOID)
task1.pcName = "EventTsk3";
task1.uwStackSize = TASK_STACK_SIZE_TEST;
task1.usTaskPrio = TASK_PRIO_TEST - 2; // 2, set new task priority, it is higher than the test task.
task1.uwResved = LOS_TASK_STATUS_DETACHED;
task1.uwResved = LOS_TASK_ATTR_JOINABLE;
g_testCount = 0;
g_pevent.uwEventID = 0;
@@ -71,11 +71,13 @@ static UINT32 Testcase(VOID)
g_testCount++;
LOS_TaskDelay(1);
ret = LOS_TaskJoin(g_testTaskID01, NULL);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
ICUNIT_GOTO_EQUAL(g_testCount, 3, g_testCount, EXIT); // 3, Here, assert that g_testCount is equal to 3.
EXIT:
LOS_TaskDelete(g_testTaskID01);
LOS_TaskJoin(g_testCount, NULL);
return LOS_OK;
}