/ThreadX-v6.4.1/test/smp/regression/ |
D | threadx_smp_non_trivial_scheduling_test.c | 9 static TX_THREAD thread_1; variable 74 status = tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1, in test_application_define() 78 status += tx_thread_smp_core_exclude(&thread_1, 0x9); /* Exclude core 2 and 1 */ in test_application_define() 155 status = tx_thread_resume(&thread_1); in thread_0_entry() 158 …TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[1] != &thread_1) in thread_0_entry() 171 …TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[1] != &thread_1) in thread_0_entry() 184 …TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[1] != &thread_1) in thread_0_entry() 198 … || (_tx_thread_execute_ptr[2] != &thread_1) || (_tx_thread_execute_ptr[3] != TX_NULL)) in thread_0_entry() 208 status += tx_thread_suspend(&thread_1); in thread_0_entry() 218 status += tx_thread_smp_core_exclude(&thread_1, 0xD); in thread_0_entry() [all …]
|
D | threadx_thread_wait_abort_test.c | 10 static TX_THREAD thread_1; variable 55 status = tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1, in test_application_define() 83 tx_thread_resume(&thread_1); in thread_0_entry() 86 if (thread_1.tx_thread_state != TX_SLEEP) in thread_0_entry() 95 status = tx_thread_wait_abort(&thread_1); in thread_0_entry() 98 if ((status != TX_SUCCESS) || (thread_1.tx_thread_state != TX_SUSPENDED)) in thread_0_entry() 136 tx_thread_suspend(&thread_1); in thread_1_entry()
|
D | threadx_thread_sleep_terminate_test.c | 11 static TX_THREAD thread_1; variable 31 if (thread_ptr != &thread_1) in entry_exit_notify() 74 status = tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1, in test_application_define() 88 status += tx_thread_entry_exit_notify(&thread_1, entry_exit_notify); in test_application_define() 134 status = tx_thread_terminate(&thread_1); in thread_0_entry() 146 status = tx_thread_suspend(&thread_1); in thread_0_entry()
|
D | threadx_thread_time_slice_change_test.c | 10 static TX_THREAD thread_1; variable 55 status = tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1, in test_application_define() 87 status = tx_thread_time_slice_change(&thread_1, 33, &old_time_slice); in thread_0_entry() 90 …if ((status != TX_SUCCESS) || (old_time_slice != 200) || (thread_1.tx_thread_new_time_slice != 33)) in thread_0_entry() 115 status = tx_thread_time_slice_change(&thread_1, 2, &old_time_slice); in thread_0_entry()
|
D | threadx_thread_basic_time_slice_test.c | 11 static TX_THREAD thread_1; variable 45 status += tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1, in test_application_define() 48 status += tx_thread_smp_core_exclude(&thread_1, 0xF); in test_application_define() 49 status += tx_thread_resume(&thread_1); in test_application_define()
|
D | threadx_thread_terminate_delete_test.c | 13 static TX_THREAD thread_1; variable 43 if (thread_ptr != &thread_1) in entry_exit_notify() 100 status = tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1, in test_application_define() 114 status = tx_thread_entry_exit_notify(&thread_1, entry_exit_notify); in test_application_define() 220 if ((thread_1.tx_thread_state != TX_TERMINATED) || in thread_0_entry() 259 status = tx_thread_delete(&thread_1); in thread_0_entry() 307 if (tx_thread_identify() != &thread_1) in thread_1_entry() 314 tx_thread_terminate(&thread_1); in thread_1_entry()
|
D | threadx_smp_preemption_threshold_test.c | 10 static TX_THREAD thread_1; variable 81 status = tx_thread_create(&thread_1, "thread 1", thread_entry, 1, in test_application_define() 85 status += tx_thread_smp_core_exclude(&thread_1, 0); /* Any core! */ in test_application_define() 343 status = tx_thread_resume(&thread_1); in thread_0_entry() 346 … || (_tx_thread_execute_ptr[2] != &thread_1) || (_tx_thread_execute_ptr[3] != TX_NULL)) in thread_0_entry() 362 … || (_tx_thread_execute_ptr[2] != &thread_1) || (_tx_thread_execute_ptr[3] != &thread_16)) in thread_0_entry() 378 … || (_tx_thread_execute_ptr[2] != &thread_1) || (_tx_thread_execute_ptr[3] != &thread_23_pt17)) in thread_0_entry() 393 … || (_tx_thread_execute_ptr[2] != &thread_1) || (_tx_thread_execute_ptr[3] != &thread_18)) in thread_0_entry() 409 … || (_tx_thread_execute_ptr[2] != &thread_1) || (_tx_thread_execute_ptr[3] != &thread_27_pt24)) in thread_0_entry() 424 … || (_tx_thread_execute_ptr[2] != &thread_1) || (_tx_thread_execute_ptr[3] != &thread_25)) in thread_0_entry() [all …]
|
D | threadx_thread_multiple_suspension_test.c | 14 static TX_THREAD thread_1; variable 76 status = tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1, in test_application_define() 182 tx_thread_suspend(&thread_1); in thread_1_entry() 244 if ((thread_0.tx_thread_state != TX_SUSPENDED) || (thread_1.tx_thread_state != TX_SUSPENDED) || in thread_5_entry() 269 if ((thread_0.tx_thread_state != TX_READY) || (thread_1.tx_thread_state != TX_SUSPENDED) || in thread_5_entry() 290 status = tx_thread_resume(&thread_1); in thread_5_entry() 293 if ((thread_0.tx_thread_state != TX_READY) || (thread_1.tx_thread_state != TX_READY) || in thread_5_entry() 317 if ((thread_0.tx_thread_state != TX_READY) || (thread_1.tx_thread_state != TX_READY) || in thread_5_entry() 341 if ((thread_0.tx_thread_state != TX_READY) || (thread_1.tx_thread_state != TX_READY) || in thread_5_entry() 365 if ((thread_0.tx_thread_state != TX_READY) || (thread_1.tx_thread_state != TX_READY) || in thread_5_entry() [all …]
|
D | threadx_thread_preemptable_suspension_test.c | 13 static TX_THREAD thread_1; variable 75 status = tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1, in test_application_define() 181 tx_thread_suspend(&thread_1); in thread_1_entry() 243 if ((thread_0.tx_thread_state != TX_SUSPENDED) || (thread_1.tx_thread_state != TX_SUSPENDED) || in thread_5_entry() 268 if ((thread_0.tx_thread_state != TX_SUSPENDED) || (thread_1.tx_thread_state != TX_SUSPENDED) || in thread_5_entry() 289 status = tx_thread_resume(&thread_1); in thread_5_entry() 292 if ((thread_0.tx_thread_state != TX_SUSPENDED) || (thread_1.tx_thread_state != TX_SUSPENDED) || in thread_5_entry() 316 if ((thread_0.tx_thread_state != TX_SUSPENDED) || (thread_1.tx_thread_state != TX_SUSPENDED) || in thread_5_entry() 340 if ((thread_0.tx_thread_state != TX_SUSPENDED) || (thread_1.tx_thread_state != TX_SUSPENDED) || in thread_5_entry() 364 if ((thread_0.tx_thread_state != TX_SUSPENDED) || (thread_1.tx_thread_state != TX_SUSPENDED) || in thread_5_entry() [all …]
|
D | threadx_queue_thread_terminate_test.c | 11 static TX_THREAD thread_1; variable 64 status = tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1, in test_application_define() 132 if (thread_1.tx_thread_state != TX_QUEUE_SUSP) in thread_0_entry() 141 status = tx_thread_terminate(&thread_1); in thread_0_entry() 144 if ((status != TX_SUCCESS) || (thread_1.tx_thread_state != TX_TERMINATED) || in thread_0_entry()
|
D | threadx_thread_preemption_change_test.c | 14 static TX_THREAD thread_1; variable 69 status = tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1, in test_application_define() 131 status = tx_thread_resume(&thread_1); in thread_0_entry() 241 status += tx_thread_priority_change(&thread_1, 5, &old_threshold); in thread_0_entry() 277 tx_thread_resume(&thread_1); in thread_0_entry() 344 tx_thread_preemption_change(&thread_1, 15, &old_threshold); in thread_1_entry() 347 tx_thread_suspend(&thread_1); in thread_1_entry() 353 tx_thread_suspend(&thread_1); in thread_1_entry()
|
D | threadx_smp_resume_suspend_decending_order_test.c | 10 static TX_THREAD thread_1; variable 103 status = tx_thread_create(&thread_1, "thread 1", thread_entry, 1, in test_application_define() 107 status += tx_thread_smp_core_exclude(&thread_1, 0x0); /* No exclusions! */ in test_application_define() 989 status = tx_thread_resume(&thread_1); in thread_0_entry() 993 …TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[1] != &thread_1) in thread_0_entry() 1006 …TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[1] != &thread_1) in thread_0_entry() 1019 …TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[1] != &thread_1) in thread_0_entry() 1032 …TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[1] != &thread_1) in thread_0_entry() 1045 …TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[1] != &thread_1) in thread_0_entry() 1058 …TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[1] != &thread_1) in thread_0_entry() [all …]
|
D | threadx_smp_resume_suspend_accending_order_test.c | 10 static TX_THREAD thread_1; variable 103 status = tx_thread_create(&thread_1, "thread 1", thread_entry, 1, in test_application_define() 107 status += tx_thread_smp_core_exclude(&thread_1, 0x0); /* No exclusions! */ in test_application_define() 570 status = tx_thread_resume(&thread_1); in thread_0_entry() 573 …TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[1] != &thread_1) in thread_0_entry() 586 …TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[1] != &thread_1) in thread_0_entry() 599 …TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[1] != &thread_1) in thread_0_entry() 612 …TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[1] != &thread_1) in thread_0_entry() 625 …TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[1] != &thread_1) in thread_0_entry() 638 …TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[1] != &thread_1) in thread_0_entry() [all …]
|
D | threadx_block_memory_thread_terminate_test.c | 10 static TX_THREAD thread_1; variable 58 status = tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1, in test_application_define() 127 status = tx_thread_terminate(&thread_1); in thread_0_entry() 130 if ((status != TX_SUCCESS) || (thread_1.tx_thread_state != TX_TERMINATED) || in thread_0_entry() 145 if ((status != TX_SUCCESS) || (thread_1.tx_thread_state != TX_TERMINATED) || in thread_0_entry()
|
D | threadx_thread_priority_change.c | 12 static TX_THREAD thread_1; variable 171 status = tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1, in test_application_define() 265 status = tx_thread_priority_change(&thread_1, 21, &old_priority); in thread_0_entry() 302 status = tx_thread_priority_change(&thread_1, 19, &old_priority); in thread_0_entry() 314 status = tx_thread_resume(&thread_1); in thread_0_entry() 326 status = tx_thread_priority_change(&thread_1, 8, &old_priority); in thread_0_entry() 338 status = tx_thread_priority_change(&thread_1, 7, &old_priority); in thread_0_entry() 362 status = tx_thread_resume(&thread_1); in thread_0_entry() 365 status += tx_thread_priority_change(&thread_1, 23, &old_priority); in thread_0_entry() 378 status = tx_thread_preemption_change(&thread_1, 14, &old_threshold); in thread_0_entry() [all …]
|
/ThreadX-v6.4.1/test/tx/regression/ |
D | threadx_thread_wait_abort_test.c | 10 static TX_THREAD thread_1; variable 55 status = tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1, in test_application_define() 83 tx_thread_resume(&thread_1); in thread_0_entry() 86 if (thread_1.tx_thread_state != TX_SLEEP) in thread_0_entry() 95 status = tx_thread_wait_abort(&thread_1); in thread_0_entry() 98 if ((status != TX_SUCCESS) || (thread_1.tx_thread_state != TX_SUSPENDED)) in thread_0_entry() 136 tx_thread_suspend(&thread_1); in thread_1_entry()
|
D | threadx_thread_sleep_terminate_test.c | 11 static TX_THREAD thread_1; variable 31 if (thread_ptr != &thread_1) in entry_exit_notify() 74 status = tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1, in test_application_define() 88 status += tx_thread_entry_exit_notify(&thread_1, entry_exit_notify); in test_application_define() 134 status = tx_thread_terminate(&thread_1); in thread_0_entry() 146 status = tx_thread_suspend(&thread_1); in thread_0_entry()
|
D | threadx_thread_time_slice_change_test.c | 10 static TX_THREAD thread_1; variable 55 status = tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1, in test_application_define() 87 status = tx_thread_time_slice_change(&thread_1, 33, &old_time_slice); in thread_0_entry() 90 …if ((status != TX_SUCCESS) || (old_time_slice != 200) || (thread_1.tx_thread_new_time_slice != 33)) in thread_0_entry() 115 status = tx_thread_time_slice_change(&thread_1, 2, &old_time_slice); in thread_0_entry()
|
D | threadx_thread_terminate_delete_test.c | 13 static TX_THREAD thread_1; variable 43 if (thread_ptr != &thread_1) in entry_exit_notify() 100 status = tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1, in test_application_define() 114 status = tx_thread_entry_exit_notify(&thread_1, entry_exit_notify); in test_application_define() 220 if ((thread_1.tx_thread_state != TX_TERMINATED) || in thread_0_entry() 259 status = tx_thread_delete(&thread_1); in thread_0_entry() 307 if (tx_thread_identify() != &thread_1) in thread_1_entry() 314 tx_thread_terminate(&thread_1); in thread_1_entry()
|
D | threadx_thread_multiple_suspension_test.c | 14 static TX_THREAD thread_1; variable 76 status = tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1, in test_application_define() 182 tx_thread_suspend(&thread_1); in thread_1_entry() 244 if ((thread_0.tx_thread_state != TX_SUSPENDED) || (thread_1.tx_thread_state != TX_SUSPENDED) || in thread_5_entry() 269 if ((thread_0.tx_thread_state != TX_READY) || (thread_1.tx_thread_state != TX_SUSPENDED) || in thread_5_entry() 290 status = tx_thread_resume(&thread_1); in thread_5_entry() 293 if ((thread_0.tx_thread_state != TX_READY) || (thread_1.tx_thread_state != TX_READY) || in thread_5_entry() 317 if ((thread_0.tx_thread_state != TX_READY) || (thread_1.tx_thread_state != TX_READY) || in thread_5_entry() 341 if ((thread_0.tx_thread_state != TX_READY) || (thread_1.tx_thread_state != TX_READY) || in thread_5_entry() 365 if ((thread_0.tx_thread_state != TX_READY) || (thread_1.tx_thread_state != TX_READY) || in thread_5_entry() [all …]
|
D | threadx_thread_preemptable_suspension_test.c | 13 static TX_THREAD thread_1; variable 75 status = tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1, in test_application_define() 181 tx_thread_suspend(&thread_1); in thread_1_entry() 243 if ((thread_0.tx_thread_state != TX_SUSPENDED) || (thread_1.tx_thread_state != TX_SUSPENDED) || in thread_5_entry() 268 if ((thread_0.tx_thread_state != TX_SUSPENDED) || (thread_1.tx_thread_state != TX_SUSPENDED) || in thread_5_entry() 289 status = tx_thread_resume(&thread_1); in thread_5_entry() 292 if ((thread_0.tx_thread_state != TX_SUSPENDED) || (thread_1.tx_thread_state != TX_SUSPENDED) || in thread_5_entry() 316 if ((thread_0.tx_thread_state != TX_SUSPENDED) || (thread_1.tx_thread_state != TX_SUSPENDED) || in thread_5_entry() 340 if ((thread_0.tx_thread_state != TX_SUSPENDED) || (thread_1.tx_thread_state != TX_SUSPENDED) || in thread_5_entry() 364 if ((thread_0.tx_thread_state != TX_SUSPENDED) || (thread_1.tx_thread_state != TX_SUSPENDED) || in thread_5_entry() [all …]
|
D | threadx_queue_thread_terminate_test.c | 11 static TX_THREAD thread_1; variable 64 status = tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1, in test_application_define() 132 if (thread_1.tx_thread_state != TX_QUEUE_SUSP) in thread_0_entry() 141 status = tx_thread_terminate(&thread_1); in thread_0_entry() 144 if ((status != TX_SUCCESS) || (thread_1.tx_thread_state != TX_TERMINATED) || in thread_0_entry()
|
D | threadx_thread_priority_change.c | 12 static TX_THREAD thread_1; variable 118 status = tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1, in test_application_define() 204 status = tx_thread_priority_change(&thread_1, 21, &old_priority); in thread_0_entry() 241 status = tx_thread_priority_change(&thread_1, 19, &old_priority); in thread_0_entry() 253 status = tx_thread_resume(&thread_1); in thread_0_entry() 265 status = tx_thread_priority_change(&thread_1, 8, &old_priority); in thread_0_entry() 277 status = tx_thread_priority_change(&thread_1, 7, &old_priority); in thread_0_entry() 318 tx_thread_suspend(&thread_1); in thread_1_entry()
|
D | threadx_block_memory_thread_terminate_test.c | 10 static TX_THREAD thread_1; variable 58 status = tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1, in test_application_define() 127 status = tx_thread_terminate(&thread_1); in thread_0_entry() 130 if ((status != TX_SUCCESS) || (thread_1.tx_thread_state != TX_TERMINATED) || in thread_0_entry() 145 if ((status != TX_SUCCESS) || (thread_1.tx_thread_state != TX_TERMINATED) || in thread_0_entry()
|
D | threadx_thread_preemption_change_test.c | 14 static TX_THREAD thread_1; variable 69 status = tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1, in test_application_define() 131 status = tx_thread_resume(&thread_1); in thread_0_entry() 241 status += tx_thread_priority_change(&thread_1, 5, &old_threshold); in thread_0_entry() 277 tx_thread_resume(&thread_1); in thread_0_entry() 331 tx_thread_suspend(&thread_1); in thread_1_entry() 337 tx_thread_suspend(&thread_1); in thread_1_entry()
|