| /ThreadX-v6.3.0/test/tx/regression/ |
| D | threadx_semaphore_ceiling_put_test.c | 16 static TX_SEMAPHORE semaphore_0; variable 98 status = tx_semaphore_create(&semaphore_0, "semaphore 0", 0); in test_application_define() 110 status = tx_semaphore_put_notify(&semaphore_0, put_notify); in test_application_define() 153 status = tx_semaphore_ceiling_put(&semaphore_0, 2); in thread_0_entry() 154 status += tx_semaphore_ceiling_put(&semaphore_0, 2); in thread_0_entry() 155 status += tx_semaphore_ceiling_put(&semaphore_0, 2); in thread_0_entry() 156 status += tx_semaphore_get(&semaphore_0, TX_NO_WAIT); in thread_0_entry() 157 status += tx_semaphore_get(&semaphore_0, TX_NO_WAIT); in thread_0_entry() 182 status = tx_semaphore_ceiling_put(&semaphore_0, 2); in thread_0_entry() 211 status = tx_semaphore_ceiling_put(&semaphore_0, 2); in thread_0_entry() [all …]
|
| D | threadx_semaphore_prioritize.c | 38 static TX_SEMAPHORE semaphore_0; variable 70 if (semaphore_0.tx_semaphore_suspension_list == &thread_3) in test_isr() 208 status = tx_semaphore_create(&semaphore_0, "semaphore 0", 0); in test_application_define() 219 status = tx_semaphore_put_notify(&semaphore_0, put_notify); in test_application_define() 287 status = tx_semaphore_prioritize(&semaphore_0); in thread_0_entry() 290 if ((status != TX_SUCCESS) || (semaphore_0.tx_semaphore_suspension_list != TX_NULL)) in thread_0_entry() 306 (semaphore_0.tx_semaphore_suspension_list != &thread_1)) in thread_0_entry() 315 status = tx_semaphore_prioritize(&semaphore_0); in thread_0_entry() 318 if ((status != TX_SUCCESS) || (semaphore_0.tx_semaphore_suspension_list != &thread_2)) in thread_0_entry() 327 status = tx_semaphore_prioritize(&semaphore_0); in thread_0_entry() [all …]
|
| D | threadx_semaphore_non_preemption_test.c | 17 static TX_SEMAPHORE semaphore_0; variable 98 status = tx_semaphore_create(&semaphore_0, "semaphore 0", 0); in test_application_define() 109 status = tx_semaphore_put_notify(&semaphore_0, put_notify); in test_application_define() 152 status = tx_semaphore_put(&semaphore_0); in thread_0_entry() 153 status += tx_semaphore_get(&semaphore_0, TX_NO_WAIT); in thread_0_entry() 178 status = tx_semaphore_put(&semaphore_0); in thread_0_entry() 207 status = tx_semaphore_put(&semaphore_0); in thread_0_entry() 208 status += tx_semaphore_put(&semaphore_0); in thread_0_entry() 243 status = tx_semaphore_get(&semaphore_0, TX_WAIT_FOREVER); in thread_1_entry() 264 status = tx_semaphore_get(&semaphore_0, TX_WAIT_FOREVER); in thread_2_entry()
|
| D | threadx_semaphore_information_test.c | 11 static TX_SEMAPHORE semaphore_0; variable 62 status = tx_semaphore_create(&semaphore_0, "semaphore 0", 1); in test_application_define() 138 status = tx_semaphore_get(&semaphore_0, TX_NO_WAIT); in thread_0_entry() 150 status = tx_semaphore_get(&semaphore_0, TX_NO_WAIT); in thread_0_entry() 199 status = tx_semaphore_info_get(&semaphore_0, TX_NULL, TX_NULL, TX_NULL, TX_NULL, TX_NULL); in thread_0_entry() 200 …status += tx_semaphore_info_get(&semaphore_0, &name, ¤t_value, &first_suspended, &suspended… in thread_0_entry() 203 if ((status != TX_SUCCESS) || (current_value != semaphore_0.tx_semaphore_count) || in thread_0_entry() 204 …(first_suspended != semaphore_0.tx_semaphore_suspension_list) || (suspended_count != semaphore_0.t… in thread_0_entry() 205 (next_semaphore != semaphore_0.tx_semaphore_created_next)) in thread_0_entry() 228 status = tx_semaphore_performance_info_get(&semaphore_0, TX_NULL, TX_NULL, TX_NULL, TX_NULL); in thread_0_entry() [all …]
|
| D | threadx_semaphore_delete_test.c | 17 static TX_SEMAPHORE semaphore_0; variable 97 status = tx_semaphore_create(&semaphore_0, "semaphore 0", 0); in test_application_define() 108 status = tx_semaphore_put_notify(&semaphore_0, put_notify); in test_application_define() 154 status = tx_semaphore_delete(&semaphore_0); in thread_0_entry() 193 status = tx_semaphore_get(&semaphore_0, TX_WAIT_FOREVER); in thread_1_entry() 208 status = tx_semaphore_get(&semaphore_0, TX_WAIT_FOREVER); in thread_2_entry()
|
| D | threadx_semaphore_basic_test.c | 43 static TX_SEMAPHORE semaphore_0; variable 92 status = tx_semaphore_delete(&semaphore_0); in timer_entry() 103 status = tx_semaphore_get(&semaphore_0, 100); in timer_entry() 140 status = tx_semaphore_delete(&semaphore_0); in test_isr() 151 status = tx_semaphore_get(&semaphore_0, 100); in test_isr() 204 status = tx_semaphore_create(&semaphore_0, "semaphore 0", 1); in test_application_define() 291 status = tx_semaphore_create(&semaphore_0, "semaphore 0", 1); in thread_0_entry() 403 status = tx_semaphore_ceiling_put(&semaphore_0, 0); in thread_0_entry() 416 status = tx_semaphore_get(&semaphore_0, TX_NO_WAIT); in thread_0_entry() 428 status = tx_semaphore_get(&semaphore_0, TX_NO_WAIT); in thread_0_entry() [all …]
|
| D | threadx_semaphore_preemption_test.c | 14 static TX_SEMAPHORE semaphore_0; variable 81 status = tx_semaphore_create(&semaphore_0, "semaphore 0", 0); in test_application_define() 92 status = tx_semaphore_put_notify(&semaphore_0, put_notify); in test_application_define() 144 status = tx_semaphore_put(&semaphore_0); in thread_0_entry() 173 status = tx_semaphore_get(&semaphore_0, TX_WAIT_FOREVER); in thread_1_entry()
|
| D | threadx_thread_wait_abort_and_isr_test.c | 20 static TX_SEMAPHORE semaphore_0; variable 81 status = tx_semaphore_put(&semaphore_0); in isr_entry() 135 status = tx_semaphore_create(&semaphore_0, "semaphore 0", 0); in test_application_define() 181 status = tx_semaphore_get(&semaphore_0, (thread_0_counter % 5) + 1); in thread_0_entry() 225 if ((thread_0_counter != (semaphore_put_counter - semaphore_0.tx_semaphore_count)) || in thread_0_entry() 229 if (thread_0_counter != (semaphore_put_counter - semaphore_0.tx_semaphore_count)) in thread_0_entry()
|
| D | threadx_semaphore_timeout_test.c | 9 static TX_SEMAPHORE semaphore_0; variable 62 status = tx_semaphore_create(&semaphore_0, "semaphore 0", 0); in test_application_define() 73 status = tx_semaphore_put_notify(&semaphore_0, put_notify); in test_application_define() 147 status = tx_semaphore_get(&semaphore_0, 33); in thread_0_entry()
|
| D | threadx_semaphore_thread_terminate_test.c | 17 static TX_SEMAPHORE semaphore_0; variable 98 status = tx_semaphore_create(&semaphore_0, "semaphore 0", 0); in test_application_define() 109 status = tx_semaphore_put_notify(&semaphore_0, put_notify); in test_application_define() 206 tx_semaphore_get(&semaphore_0, 33); in thread_1_entry() 220 tx_semaphore_get(&semaphore_0, 44); in thread_2_entry()
|
| /ThreadX-v6.3.0/test/smp/regression/ |
| D | threadx_semaphore_ceiling_put_test.c | 16 static TX_SEMAPHORE semaphore_0; variable 98 status = tx_semaphore_create(&semaphore_0, "semaphore 0", 0); in test_application_define() 110 status = tx_semaphore_put_notify(&semaphore_0, put_notify); in test_application_define() 153 status = tx_semaphore_ceiling_put(&semaphore_0, 2); in thread_0_entry() 154 status += tx_semaphore_ceiling_put(&semaphore_0, 2); in thread_0_entry() 155 status += tx_semaphore_ceiling_put(&semaphore_0, 2); in thread_0_entry() 156 status += tx_semaphore_get(&semaphore_0, TX_NO_WAIT); in thread_0_entry() 157 status += tx_semaphore_get(&semaphore_0, TX_NO_WAIT); in thread_0_entry() 182 status = tx_semaphore_ceiling_put(&semaphore_0, 2); in thread_0_entry() 211 status = tx_semaphore_ceiling_put(&semaphore_0, 2); in thread_0_entry() [all …]
|
| D | threadx_semaphore_prioritize.c | 38 static TX_SEMAPHORE semaphore_0; variable 70 if (semaphore_0.tx_semaphore_suspension_list == &thread_3) in test_isr() 208 status = tx_semaphore_create(&semaphore_0, "semaphore 0", 0); in test_application_define() 219 status = tx_semaphore_put_notify(&semaphore_0, put_notify); in test_application_define() 287 status = tx_semaphore_prioritize(&semaphore_0); in thread_0_entry() 290 if ((status != TX_SUCCESS) || (semaphore_0.tx_semaphore_suspension_list != TX_NULL)) in thread_0_entry() 306 (semaphore_0.tx_semaphore_suspension_list != &thread_1)) in thread_0_entry() 315 status = tx_semaphore_prioritize(&semaphore_0); in thread_0_entry() 318 if ((status != TX_SUCCESS) || (semaphore_0.tx_semaphore_suspension_list != &thread_2)) in thread_0_entry() 327 status = tx_semaphore_prioritize(&semaphore_0); in thread_0_entry() [all …]
|
| D | threadx_semaphore_non_preemption_test.c | 17 static TX_SEMAPHORE semaphore_0; variable 98 status = tx_semaphore_create(&semaphore_0, "semaphore 0", 0); in test_application_define() 109 status = tx_semaphore_put_notify(&semaphore_0, put_notify); in test_application_define() 152 status = tx_semaphore_put(&semaphore_0); in thread_0_entry() 153 status += tx_semaphore_get(&semaphore_0, TX_NO_WAIT); in thread_0_entry() 178 status = tx_semaphore_put(&semaphore_0); in thread_0_entry() 207 status = tx_semaphore_put(&semaphore_0); in thread_0_entry() 208 status += tx_semaphore_put(&semaphore_0); in thread_0_entry() 243 status = tx_semaphore_get(&semaphore_0, TX_WAIT_FOREVER); in thread_1_entry() 264 status = tx_semaphore_get(&semaphore_0, TX_WAIT_FOREVER); in thread_2_entry()
|
| D | threadx_semaphore_information_test.c | 11 static TX_SEMAPHORE semaphore_0; variable 62 status = tx_semaphore_create(&semaphore_0, "semaphore 0", 1); in test_application_define() 138 status = tx_semaphore_get(&semaphore_0, TX_NO_WAIT); in thread_0_entry() 150 status = tx_semaphore_get(&semaphore_0, TX_NO_WAIT); in thread_0_entry() 199 status = tx_semaphore_info_get(&semaphore_0, TX_NULL, TX_NULL, TX_NULL, TX_NULL, TX_NULL); in thread_0_entry() 200 …status += tx_semaphore_info_get(&semaphore_0, &name, ¤t_value, &first_suspended, &suspended… in thread_0_entry() 203 if ((status != TX_SUCCESS) || (current_value != semaphore_0.tx_semaphore_count) || in thread_0_entry() 204 …(first_suspended != semaphore_0.tx_semaphore_suspension_list) || (suspended_count != semaphore_0.t… in thread_0_entry() 205 (next_semaphore != semaphore_0.tx_semaphore_created_next)) in thread_0_entry() 228 status = tx_semaphore_performance_info_get(&semaphore_0, TX_NULL, TX_NULL, TX_NULL, TX_NULL); in thread_0_entry() [all …]
|
| D | threadx_semaphore_delete_test.c | 17 static TX_SEMAPHORE semaphore_0; variable 97 status = tx_semaphore_create(&semaphore_0, "semaphore 0", 0); in test_application_define() 108 status = tx_semaphore_put_notify(&semaphore_0, put_notify); in test_application_define() 154 status = tx_semaphore_delete(&semaphore_0); in thread_0_entry() 193 status = tx_semaphore_get(&semaphore_0, TX_WAIT_FOREVER); in thread_1_entry() 208 status = tx_semaphore_get(&semaphore_0, TX_WAIT_FOREVER); in thread_2_entry()
|
| D | threadx_semaphore_basic_test.c | 43 static TX_SEMAPHORE semaphore_0; variable 92 status = tx_semaphore_delete(&semaphore_0); in timer_entry() 103 status = tx_semaphore_get(&semaphore_0, 100); in timer_entry() 140 status = tx_semaphore_delete(&semaphore_0); in test_isr() 151 status = tx_semaphore_get(&semaphore_0, 100); in test_isr() 204 status = tx_semaphore_create(&semaphore_0, "semaphore 0", 1); in test_application_define() 291 status = tx_semaphore_create(&semaphore_0, "semaphore 0", 1); in thread_0_entry() 403 status = tx_semaphore_ceiling_put(&semaphore_0, 0); in thread_0_entry() 416 status = tx_semaphore_get(&semaphore_0, TX_NO_WAIT); in thread_0_entry() 428 status = tx_semaphore_get(&semaphore_0, TX_NO_WAIT); in thread_0_entry() [all …]
|
| D | threadx_semaphore_preemption_test.c | 14 static TX_SEMAPHORE semaphore_0; variable 81 status = tx_semaphore_create(&semaphore_0, "semaphore 0", 0); in test_application_define() 92 status = tx_semaphore_put_notify(&semaphore_0, put_notify); in test_application_define() 144 status = tx_semaphore_put(&semaphore_0); in thread_0_entry() 173 status = tx_semaphore_get(&semaphore_0, TX_WAIT_FOREVER); in thread_1_entry()
|
| D | threadx_thread_wait_abort_and_isr_test.c | 21 static TX_SEMAPHORE semaphore_0; variable 82 status = tx_semaphore_put(&semaphore_0); in isr_entry() 136 status = tx_semaphore_create(&semaphore_0, "semaphore 0", 0); in test_application_define() 182 status = tx_semaphore_get(&semaphore_0, (thread_0_counter % 5) + 1); in thread_0_entry() 226 if ((thread_0_counter != (semaphore_put_counter - semaphore_0.tx_semaphore_count)) || in thread_0_entry() 230 if (thread_0_counter != (semaphore_put_counter - semaphore_0.tx_semaphore_count)) in thread_0_entry()
|
| D | threadx_semaphore_timeout_test.c | 9 static TX_SEMAPHORE semaphore_0; variable 62 status = tx_semaphore_create(&semaphore_0, "semaphore 0", 0); in test_application_define() 73 status = tx_semaphore_put_notify(&semaphore_0, put_notify); in test_application_define() 146 status = tx_semaphore_get(&semaphore_0, 33); in thread_0_entry()
|
| D | threadx_semaphore_thread_terminate_test.c | 17 static TX_SEMAPHORE semaphore_0; variable 98 status = tx_semaphore_create(&semaphore_0, "semaphore 0", 0); in test_application_define() 109 status = tx_semaphore_put_notify(&semaphore_0, put_notify); in test_application_define() 206 tx_semaphore_get(&semaphore_0, 33); in thread_1_entry() 220 tx_semaphore_get(&semaphore_0, 44); in thread_2_entry()
|
| /ThreadX-v6.3.0/ports_module/cortex_m7/ac5/example_build/ |
| D | sample_threadx_module.c | 46 TX_SEMAPHORE *semaphore_0; variable 81 if (semaphore_ptr == semaphore_0) in semaphore_0_notify() 121 txm_module_object_allocate((void*)&semaphore_0, sizeof(TX_SEMAPHORE)); in demo_module_start() 209 tx_semaphore_create(semaphore_0, "module semaphore 0", 1); in demo_module_start() 211 tx_semaphore_put_notify(semaphore_0, semaphore_0_notify); in demo_module_start() 335 status = tx_semaphore_get(semaphore_0, TX_WAIT_FOREVER); in thread_3_and_4_entry() 345 status = tx_semaphore_put(semaphore_0); in thread_3_and_4_entry()
|
| /ThreadX-v6.3.0/ports_module/cortex_m7/ac6/example_build/sample_threadx_module/ |
| D | sample_threadx_module.c | 46 TX_SEMAPHORE *semaphore_0; variable 81 if (semaphore_ptr == semaphore_0) in semaphore_0_notify() 121 txm_module_object_allocate((void*)&semaphore_0, sizeof(TX_SEMAPHORE)); in demo_module_start() 209 tx_semaphore_create(semaphore_0, "module semaphore 0", 1); in demo_module_start() 211 tx_semaphore_put_notify(semaphore_0, semaphore_0_notify); in demo_module_start() 335 status = tx_semaphore_get(semaphore_0, TX_WAIT_FOREVER); in thread_3_and_4_entry() 345 status = tx_semaphore_put(semaphore_0); in thread_3_and_4_entry()
|
| /ThreadX-v6.3.0/ports_module/cortex_m7/gnu/example_build/ |
| D | sample_threadx_module.c | 40 TX_SEMAPHORE *semaphore_0; variable 75 if (semaphore_ptr == semaphore_0) in semaphore_0_notify() 115 txm_module_object_allocate((void*)&semaphore_0, sizeof(TX_SEMAPHORE)); in demo_module_start() 203 tx_semaphore_create(semaphore_0, "module semaphore 0", 1); in demo_module_start() 205 tx_semaphore_put_notify(semaphore_0, semaphore_0_notify); in demo_module_start() 331 status = tx_semaphore_get(semaphore_0, TX_WAIT_FOREVER); in thread_3_and_4_entry() 341 status = tx_semaphore_put(semaphore_0); in thread_3_and_4_entry()
|
| /ThreadX-v6.3.0/ports_module/cortex_m7/iar/example_build/ |
| D | sample_threadx_module.c | 40 TX_SEMAPHORE *semaphore_0; variable 75 if (semaphore_ptr == semaphore_0) in semaphore_0_notify() 115 txm_module_object_allocate((void*)&semaphore_0, sizeof(TX_SEMAPHORE)); in demo_module_start() 203 tx_semaphore_create(semaphore_0, "module semaphore 0", 1); in demo_module_start() 205 tx_semaphore_put_notify(semaphore_0, semaphore_0_notify); in demo_module_start() 330 status = tx_semaphore_get(semaphore_0, TX_WAIT_FOREVER); in thread_3_and_4_entry() 340 status = tx_semaphore_put(semaphore_0); in thread_3_and_4_entry()
|
| /ThreadX-v6.3.0/ports_module/cortex_r4/ac6/example_build/sample_threadx_module/ |
| D | sample_threadx_module.c | 40 TX_SEMAPHORE *semaphore_0; variable 76 if (semaphore_ptr == semaphore_0) in semaphore_0_notify() 116 txm_module_object_allocate((void *) &semaphore_0, sizeof(TX_SEMAPHORE)); in demo_module_start() 203 tx_semaphore_create(semaphore_0, "module semaphore 0", 1); in demo_module_start() 205 tx_semaphore_put_notify(semaphore_0, semaphore_0_notify); in demo_module_start() 330 status = tx_semaphore_get(semaphore_0, TX_WAIT_FOREVER); in thread_3_and_4_entry() 340 status = tx_semaphore_put(semaphore_0); in thread_3_and_4_entry()
|