/kernel/liteos_a/testsuites/kernel/sample/kernel_base/ipc/sem/smoke/ |
D | It_los_sem_003.c | 46 ret = LOS_SemCreate(0, &g_semID); in Testcase() 49 ret = LOS_SemPend(g_semID, 2); // 2, set timeout in Testcase() 52 ret = LOS_SemDelete(g_semID); in Testcase() 55 ret = LOS_SemCreate(1, &g_semID); in Testcase() 58 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in Testcase() 61 ret = LOS_SemDelete(g_semID); in Testcase() 64 ret = LOS_SemCreate(IT_SEM_COUNT_MAX, &g_semID); in Testcase() 67 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in Testcase() 70 ret = LOS_SemDelete(g_semID); in Testcase()
|
D | It_los_sem_001.c | 46 ret = LOS_SemCreate(0, &g_semID); in Testcase() 49 ret = LOS_SemDelete(g_semID); in Testcase() 52 ret = LOS_SemCreate(1, &g_semID); in Testcase() 55 ret = LOS_SemDelete(g_semID); in Testcase() 58 ret = LOS_SemCreate(IT_SEM_COUNT_MAX, &g_semID); in Testcase() 61 ret = LOS_SemDelete(g_semID); in Testcase() 64 ret = LOS_SemCreate(IT_SEM_COUNT_MAX + 1, &g_semID); in Testcase()
|
D | It_los_sem_006.c | 46 ret = LOS_SemCreate(0, &g_semID); in Testcase() 49 ret = LOS_SemPost(g_semID); in Testcase() 52 ret = LOS_SemDelete(g_semID); in Testcase() 55 ret = LOS_SemCreate(IT_SEM_COUNT_MAX, &g_semID); in Testcase() 58 ret = LOS_SemPost(g_semID); in Testcase() 61 ret = LOS_SemDelete(g_semID); in Testcase()
|
/kernel/liteos_a/testsuites/kernel/sample/kernel_base/ipc/sem/full/ |
D | It_los_sem_026.c | 45 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF02() 59 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01() 62 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01() 82 ret = LOS_SemCreate(0, &g_semID); in Testcase() 99 ret = LOS_SemPost(g_semID); in Testcase() 104 ret = LOS_SemPost(g_semID); in Testcase() 107 ret = LOS_SemPost(g_semID); in Testcase() 116 ret = LOS_SemDelete(g_semID); in Testcase() 126 ret = LOS_SemDelete(g_semID); in Testcase()
|
D | It_los_sem_005.c | 44 ret = LOS_SemCreate(2, &g_semID); // 2, Number of semaphore available in Testcase() 47 ret = LOS_SemPend(g_semID, LOS_NO_WAIT); in Testcase() 50 ret = LOS_SemPend(g_semID, 0xF); in Testcase() 52 ret = LOS_SemPend(g_semID, LOS_NO_WAIT); in Testcase() 55 ret = LOS_SemPend(g_semID, 0xF); in Testcase() 59 ret = LOS_SemDelete(g_semID); in Testcase()
|
D | It_los_sem_012.c | 47 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01() 60 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF02() 83 ret = LOS_SemCreate(0, &g_semID); in Testcase() 104 ret = LOS_SemPost(g_semID); in Testcase() 110 ret = LOS_SemPost(g_semID); in Testcase() 120 ret = LOS_SemDelete(g_semID); in Testcase() 130 ret = LOS_SemDelete(g_semID); in Testcase() 136 ret = LOS_SemDelete(g_semID); in Testcase()
|
D | It_los_sem_017.c | 46 ret = LOS_SemCreate(0, &g_semID); in TaskF01() 49 ret = LOS_SemPost(g_semID); in TaskF01() 52 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01() 55 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01() 87 ret = LOS_SemDelete(g_semID); in Testcase()
|
D | It_los_sem_020.c | 45 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01() 67 ret = LOS_SemCreate(0, &g_semID); in Testcase() 75 ret = LOS_SemPost(g_semID); in Testcase() 83 ret = LOS_SemDelete(g_semID); in Testcase() 90 ret = LOS_SemDelete(g_semID); in Testcase()
|
D | It_los_sem_029.c | 48 ret = LOS_SemCreate(0xFFFF - IT_SEMLOOP, &g_semID); in Testcase() 52 ret = LOS_SemPost(g_semID); in Testcase() 56 ret = LOS_SemPost(g_semID); in Testcase() 60 ret = LOS_SemDelete(g_semID); in Testcase()
|
/kernel/liteos_a/testsuites/kernel/sample/kernel_base/ipc/sem/smp/ |
D | It_smp_los_sem_033.c | 46 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01() 60 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF02() 77 ret = LOS_SemCreate(0, &g_semID); in Testcase() 103 ret = LOS_SemPost(g_semID); in Testcase() 109 ret = LOS_SemPost(g_semID); in Testcase() 123 ret = LOS_SemDelete(g_semID); in Testcase() 130 ret = LOS_SemDelete(g_semID); in Testcase()
|
D | It_smp_los_sem_025.c | 46 ret = LOS_SemPost(g_semID); in TaskF01() 58 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in HwiF01() 61 ret = LOS_SemDelete(g_semID); in HwiF01() 68 LOS_SemDelete(g_semID); in HwiF01() 80 ret = LOS_SemCreate(0, &g_semID); in testcase() 106 LOS_SemDelete(g_semID); in testcase()
|
D | It_smp_los_sem_020.c | 49 ret = LOS_SemPost(g_semID); in TaskF01() 64 ret = LOS_SemCreate(0, &g_semID); in Testcase() 74 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in Testcase() 77 ret = LOS_SemDelete(g_semID); in Testcase() 82 LOS_SemDelete(g_semID); in Testcase()
|
D | It_smp_los_sem_021.c | 47 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01() 62 ret = LOS_SemCreate(0, &g_semID); in Testcase() 67 ret = LOS_SemPost(g_semID); in Testcase() 79 ret = LOS_SemDelete(g_semID); in Testcase() 84 LOS_SemDelete(g_semID); in Testcase()
|
D | It_smp_los_sem_027.c | 48 ret = LOS_SemPost(g_semID); // sem post in hwi in HwiF01() 61 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01() 94 ret = LOS_SemCreate(0, &g_semID); in Testcase() 114 ret = LOS_SemPost(g_semID); // sem post in task in Testcase() 120 ret = LOS_SemDelete(g_semID); in Testcase() 127 LOS_SemDelete(g_semID); in Testcase()
|
D | It_smp_los_sem_030.c | 52 g_ret1 = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01() 58 g_ret2 = LOS_SemPost(g_semID); in TaskF01() 64 g_ret3 = LOS_SemDelete(g_semID); in TaskF01() 87 ret = LOS_SemCreate(0, &g_semID); in Testcase() 112 LOS_SemDelete(g_semID); in Testcase() 119 LOS_SemDelete(g_semID); in Testcase()
|
D | It_smp_los_sem_029.c | 46 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01() 62 ret = LOS_SemDelete(g_semID); // delete event in other cpu in TaskF02() 81 ret = LOS_SemCreate(0, &g_semID); in Testcase() 101 ret = LOS_SemPost(g_semID); // post sem in other cpu in Testcase() 112 ret = LOS_SemDelete(g_semID); in Testcase() 128 LOS_SemDelete(g_semID); in Testcase()
|
D | It_smp_los_sem_024.c | 47 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF02() 50 ret = LOS_SemDelete(g_semID); in TaskF02() 61 ret = LOS_SemPost(g_semID); in TaskF01() 73 ret = LOS_SemCreate(0, &g_semID); in Testcase() 94 LOS_SemDelete(g_semID); in Testcase()
|
D | It_smp_los_sem_010.c | 47 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01() 62 ret = LOS_SemPost(g_semID); in TaskF02() 77 ret = LOS_SemCreate(0, &g_semID); in Testcase() 90 ret = LOS_SemDelete(g_semID); in Testcase() 98 LOS_SemDelete(g_semID); in Testcase()
|
D | It_smp_los_sem_023.c | 47 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01() 58 ret = LOS_SemDelete(g_semID); in TaskF02() 73 ret = LOS_SemCreate(0, &g_semID); in Testcase() 76 ret = LOS_SemPost(g_semID); in Testcase() 99 LOS_SemDelete(g_semID); in Testcase()
|
D | It_smp_los_sem_013.c | 47 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01() 64 ret = LOS_SemDelete(g_semID); in TaskF02() 79 ret = LOS_SemCreate(0, &g_semID); in Testcase() 94 ret = LOS_SemPost(g_semID); in Testcase() 103 LOS_SemDelete(g_semID); in Testcase()
|
D | It_smp_los_sem_014.c | 47 ret = LOS_SemPost(g_semID); in TaskF02() 54 ret = LOS_SemDelete(g_semID); in TaskF02() 65 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01() 78 ret = LOS_SemCreate(0, &g_semID); in Testcase() 99 LOS_SemDelete(g_semID); in Testcase()
|
D | It_smp_los_sem_011.c | 46 ret = LOS_SemPost(g_semID); in TaskF02() 60 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01() 76 ret = LOS_SemCreate(0, &g_semID); in Testcase() 94 ret = LOS_SemDelete(g_semID); in Testcase() 100 LOS_SemDelete(g_semID); in Testcase()
|
D | It_smp_los_sem_035.c | 50 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01() 72 ret = LOS_SemCreate(0, &g_semID); in Testcase() 94 ret = LOS_SemPost(g_semID); // try to wake task f01 in Testcase() 102 ret = LOS_SemDelete(g_semID); in Testcase() 109 LOS_SemDelete(g_semID); in Testcase()
|
D | It_smp_los_sem_012.c | 48 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01() 60 ret = LOS_SemPost(g_semID); in HwiF01() 73 ret = LOS_SemCreate(0, &g_semID); in Testcase() 95 ret = LOS_SemDelete(g_semID); in Testcase() 102 LOS_SemDelete(g_semID); in Testcase()
|
D | It_smp_los_sem_032.c | 48 ret = LOS_SemPend(g_semID, 100); // 100 ticks timeout in TaskF01() 53 ret = LOS_SemPost(g_semID); in TaskF01() 67 ret = LOS_SemCreate(0, &g_semID); in Testcase() 83 ret = LOS_SemPost(g_semID); // post sem before 10 ticks timeout in Testcase() 93 ret = LOS_SemDelete(g_semID); in Testcase()
|