Home
last modified time | relevance | path

Searched refs:thread_0 (Results 1 – 25 of 426) sorted by relevance

12345678910>>...18

/ThreadX-v6.4.1/test/smp/regression/
Dthreadx_mutex_suspension_timeout_test.c10 static TX_THREAD thread_0; variable
82 thread_ptr = &thread_0; in suspend_lowest_priority()
119 thread_0.tx_thread_smp_core_mapped = TX_THREAD_SMP_MAX_CORES; in suspend_lowest_priority()
143 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 0, in test_application_define()
259 _tx_mutex_priority_change(&thread_0, 15); in thread_0_entry()
260 _tx_mutex_priority_change(&thread_0, 16); in thread_0_entry()
268 thread_0.tx_thread_user_priority = 30; in thread_0_entry()
269 thread_0.tx_thread_user_preempt_threshold = 30; in thread_0_entry()
270 _tx_mutex_priority_change(&thread_0, 30); in thread_0_entry()
273 thread_0.tx_thread_user_priority = 31; in thread_0_entry()
[all …]
Dthreadx_mutex_nested_priority_inheritance_test.c11 static TX_THREAD thread_0; variable
69 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 0, in test_application_define()
227 tx_thread_suspend(&thread_0); in thread_0_entry()
233 if (thread_0.tx_thread_priority != 4) in thread_0_entry()
250 if (thread_0.tx_thread_priority != 8) in thread_0_entry()
261 if (thread_0.tx_thread_priority != 15) in thread_0_entry()
272 if (thread_0.tx_thread_priority != 15) in thread_0_entry()
283 priority = thread_0.tx_thread_priority; in thread_0_entry()
287 if (thread_0.tx_thread_priority != priority) in thread_0_entry()
298 if (thread_0.tx_thread_priority != priority) in thread_0_entry()
[all …]
Dthreadx_smp_one_thread_dynamic_exclusion_test.c8 static TX_THREAD thread_0; variable
49 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 0, in test_application_define()
53 status += tx_thread_smp_core_exclude(&thread_0, 0x0); /* No exclusions! */ in test_application_define()
65 status = tx_thread_resume(&thread_0); in test_application_define()
91 status = tx_thread_smp_core_exclude(&thread_0, 0xD); /* Only core 1! */ in thread_0_entry()
103 status = tx_thread_smp_core_exclude(&thread_0, 0xB); /* Only core 2! */ in thread_0_entry()
115 status = tx_thread_smp_core_exclude(&thread_0, 0x7); /* Only core 3! */ in thread_0_entry()
127 status = tx_thread_smp_core_exclude(&thread_0, 0xE); /* Only core 0! */ in thread_0_entry()
Dthreadx_thread_preemption_change_test.c22 static TX_THREAD thread_0; variable
54 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 1, in test_application_define()
143 status = tx_thread_preemption_change(&thread_0, 15, &old_threshold); in thread_0_entry()
146 status += tx_thread_preemption_change(&thread_0, 16, &old_threshold); in thread_0_entry()
172 status = tx_thread_preemption_change(&thread_0, 15, &old_threshold); in thread_0_entry()
203 status = tx_thread_preemption_change(&thread_0, 14, &old_threshold); in thread_0_entry()
227 status = tx_thread_preemption_change(&thread_0, 15, &old_threshold); in thread_0_entry()
240 status = tx_thread_priority_change(&thread_0, 7, &old_threshold); in thread_0_entry()
253 status = tx_thread_preemption_change(&thread_0, 0, &old_threshold); in thread_0_entry()
280 tx_thread_suspend(&thread_0); in thread_0_entry()
[all …]
Dthreadx_smp_non_trivial_scheduling_test.c8 static TX_THREAD thread_0; variable
60 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 0, in test_application_define()
64 status += tx_thread_smp_core_exclude(&thread_0, 0xE); /* Only allow core 0 for now */ in test_application_define()
117 status = tx_thread_resume(&thread_0); in test_application_define()
143 status = tx_thread_smp_core_exclude(&thread_0, 0xC); /* Allow core 0 and 1 */ in thread_0_entry()
146 if ((status != TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0)) in thread_0_entry()
158 …if ((status != TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[… in thread_0_entry()
171 …if ((status != TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[… in thread_0_entry()
184 …if ((status != TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[… in thread_0_entry()
197 …TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_3) || (_tx_thread_execute_ptr[1] != &thread_0) in thread_0_entry()
[all …]
Dthreadx_thread_priority_change.c9 static TX_THREAD thread_0; variable
62 thread_ptr = &thread_0; in suspend_thread()
158 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 1, in test_application_define()
238 status = tx_thread_priority_change(&thread_0, 22, &old_priority); in thread_0_entry()
250 tx_thread_priority_change(&thread_0, old_priority, &old_priority); in thread_0_entry()
253 status = tx_thread_priority_change(&thread_0, 7, &old_priority); in thread_0_entry()
277 status = tx_thread_priority_change(&thread_0, 22, &old_priority); in thread_0_entry()
290 status = tx_thread_priority_change(&thread_0, 8, &old_priority); in thread_0_entry()
350 status = tx_thread_priority_change(&thread_0, 7, &old_priority); in thread_0_entry()
393 status += tx_thread_priority_change(&thread_0, 15, &old_priority); in thread_0_entry()
[all …]
Dthreadx_thread_reset_test.c15 static TX_THREAD thread_0; variable
36 if (thread_ptr != &thread_0) in entry_exit_notify()
66 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 1, in test_application_define()
72 status += tx_thread_entry_exit_notify(&thread_0, entry_exit_notify); in test_application_define()
165 if ((thread_0.tx_thread_state != TX_COMPLETED) || (thread_0_counter != 1) || in thread_1_entry()
191 status = tx_thread_reset(&thread_0); in thread_1_entry()
194 if ((thread_0.tx_thread_state != TX_SUSPENDED) || (thread_0_counter != 1) || in thread_1_entry()
208 status = tx_thread_terminate(&thread_0); in thread_1_entry()
209 status += tx_thread_reset(&thread_0); in thread_1_entry()
213 status += tx_thread_resume(&thread_0); in thread_1_entry()
[all …]
Dthreadx_smp_resume_suspend_decending_order_test.c9 static TX_THREAD thread_0; variable
89 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 0, in test_application_define()
93 status += tx_thread_smp_core_exclude(&thread_0, 0xE); /* Core 0 only! */ in test_application_define()
544 status = tx_thread_resume(&thread_0); in test_application_define()
573 …if ((status != TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[… in thread_0_entry()
587 …if ((status != TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[… in thread_0_entry()
601 …if ((status != TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[… in thread_0_entry()
615 …if ((status != TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[… in thread_0_entry()
629 …if ((status != TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[… in thread_0_entry()
643 …if ((status != TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[… in thread_0_entry()
[all …]
Dthreadx_smp_resume_suspend_accending_order_test.c9 static TX_THREAD thread_0; variable
89 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 0, in test_application_define()
93 status += tx_thread_smp_core_exclude(&thread_0, 0xE); /* Core 0 only! */ in test_application_define()
544 status = tx_thread_resume(&thread_0); in test_application_define()
573 …if ((status != TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[… in thread_0_entry()
586 …if ((status != TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[… in thread_0_entry()
599 …if ((status != TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[… in thread_0_entry()
612 …if ((status != TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[… in thread_0_entry()
625 …if ((status != TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[… in thread_0_entry()
638 …if ((status != TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[… in thread_0_entry()
[all …]
Dthreadx_smp_preemption_threshold_test.c9 static TX_THREAD thread_0; variable
67 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 0, in test_application_define()
71 status += tx_thread_smp_core_exclude(&thread_0, 0xE); /* Core 0 only! */ in test_application_define()
214 status = tx_thread_resume(&thread_0); in test_application_define()
246 …if ((status != TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[… in thread_0_entry()
259 …if ((status != TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[… in thread_0_entry()
272 …if ((status != TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[… in thread_0_entry()
285 …if ((status != TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[… in thread_0_entry()
297 …if ((status != TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[… in thread_0_entry()
309 …if ((status != TX_SUCCESS) || (_tx_thread_execute_ptr[0] != &thread_0) || (_tx_thread_execute_ptr[… in thread_0_entry()
[all …]
Dthreadx_thread_completed_test.c15 static TX_THREAD thread_0; variable
37 if (thread_ptr != &thread_0) in entry_exit_notify()
67 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 1, in test_application_define()
73 status += tx_thread_entry_exit_notify(&thread_0, entry_exit_notify); in test_application_define()
125 _tx_thread_created_ptr = &thread_0; in test_application_define()
168 status = tx_thread_suspend(&thread_0); in thread_1_entry()
180 status = tx_thread_delete(&thread_0); in thread_1_entry()
231 if ((thread_0.tx_thread_state == TX_COMPLETED) && (thread_0_counter == 1) && in thread_1_entry()
Dthreadx_thread_information_test.c9 static TX_THREAD thread_0; variable
34 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 1, in test_application_define()
84 …status = tx_thread_info_get(&thread_0, TX_NULL, TX_NULL, TX_NULL, TX_NULL, TX_NULL, TX_NULL, TX_N… in thread_0_entry()
85 …status += tx_thread_info_get(&thread_0, &name, &state, &run_count, &priority, &preemption_threshol… in thread_0_entry()
88 …if ((status != TX_SUCCESS) || (state != TX_READY) || (run_count != thread_0.tx_thread_run_count) |… in thread_0_entry()
89 …(time_slice != 0) || (next_thread != thread_0.tx_thread_created_next) || (suspended_thread != thre… in thread_0_entry()
113 …status = tx_thread_performance_info_get(&thread_0, TX_NULL, TX_NULL, TX_NULL, TX_NULL, TX_NULL, T… in thread_0_entry()
114 …status += tx_thread_performance_info_get(&thread_0, &resumptions, &suspensions, &solicited_preempt… in thread_0_entry()
118 …tatus != TX_SUCCESS) || (resumptions != thread_0.tx_thread_performance_resume_count) || (suspensio… in thread_0_entry()
119 …(solicited_preemptions != thread_0.tx_thread_performance_solicited_preemption_count) || (interrupt… in thread_0_entry()
[all …]
Dthreadx_thread_simple_suspend_test.c8 static TX_THREAD thread_0; variable
42 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 1, in test_application_define()
89 tx_thread_suspend(&thread_0); in thread_0_entry()
100 if ((thread_0.tx_thread_state != TX_SUSPENDED) || (thread_0_counter != 1)) in thread_1_entry()
Dthreadx_thread_multiple_suspension_test.c11 static TX_THREAD thread_0; variable
62 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 1, in test_application_define()
162 tx_thread_suspend(&thread_0); in thread_0_entry()
244 if ((thread_0.tx_thread_state != TX_SUSPENDED) || (thread_1.tx_thread_state != TX_SUSPENDED) || in thread_5_entry()
266 status = tx_thread_resume(&thread_0); in thread_5_entry()
269 if ((thread_0.tx_thread_state != TX_READY) || (thread_1.tx_thread_state != TX_SUSPENDED) || 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 …]
Dthreadx_thread_preemptable_suspension_test.c10 static TX_THREAD thread_0; variable
61 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 1, in test_application_define()
161 tx_thread_suspend(&thread_0); in thread_0_entry()
243 if ((thread_0.tx_thread_state != TX_SUSPENDED) || (thread_1.tx_thread_state != TX_SUSPENDED) || in thread_5_entry()
265 status = tx_thread_resume(&thread_0); in thread_5_entry()
268 if ((thread_0.tx_thread_state != TX_SUSPENDED) || (thread_1.tx_thread_state != TX_SUSPENDED) || 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 …]
Dthreadx_thread_simple_sleep_non_clear_test.c8 static TX_THREAD thread_0; variable
37 thread_0.tx_thread_timer.tx_timer_internal_re_initialize_ticks = 1; in test_application_define()
42 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 1, in test_application_define()
/ThreadX-v6.4.1/test/tx/regression/
Dthreadx_mutex_nested_priority_inheritance_test.c11 static TX_THREAD thread_0; variable
69 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 0, in test_application_define()
227 tx_thread_suspend(&thread_0); in thread_0_entry()
233 if (thread_0.tx_thread_priority != 4) in thread_0_entry()
250 if (thread_0.tx_thread_priority != 8) in thread_0_entry()
261 if (thread_0.tx_thread_priority != 15) in thread_0_entry()
272 if (thread_0.tx_thread_priority != 15) in thread_0_entry()
283 priority = thread_0.tx_thread_priority; in thread_0_entry()
287 if (thread_0.tx_thread_priority != priority) in thread_0_entry()
298 if (thread_0.tx_thread_priority != priority) in thread_0_entry()
[all …]
Dthreadx_thread_preemption_change_test.c22 static TX_THREAD thread_0; variable
54 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 1, in test_application_define()
143 status = tx_thread_preemption_change(&thread_0, 15, &old_threshold); in thread_0_entry()
146 status += tx_thread_preemption_change(&thread_0, 16, &old_threshold); in thread_0_entry()
172 status = tx_thread_preemption_change(&thread_0, 15, &old_threshold); in thread_0_entry()
203 status = tx_thread_preemption_change(&thread_0, 14, &old_threshold); in thread_0_entry()
227 status = tx_thread_preemption_change(&thread_0, 15, &old_threshold); in thread_0_entry()
240 status = tx_thread_priority_change(&thread_0, 7, &old_threshold); in thread_0_entry()
253 status = tx_thread_preemption_change(&thread_0, 0, &old_threshold); in thread_0_entry()
280 tx_thread_suspend(&thread_0); in thread_0_entry()
[all …]
Dthreadx_thread_reset_test.c15 static TX_THREAD thread_0; variable
36 if (thread_ptr != &thread_0) in entry_exit_notify()
66 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 1, in test_application_define()
72 status += tx_thread_entry_exit_notify(&thread_0, entry_exit_notify); in test_application_define()
165 if ((thread_0.tx_thread_state != TX_COMPLETED) || (thread_0_counter != 1) || in thread_1_entry()
191 status = tx_thread_reset(&thread_0); in thread_1_entry()
194 if ((thread_0.tx_thread_state != TX_SUSPENDED) || (thread_0_counter != 1) || in thread_1_entry()
208 status = tx_thread_terminate(&thread_0); in thread_1_entry()
209 status += tx_thread_reset(&thread_0); in thread_1_entry()
213 status += tx_thread_resume(&thread_0); in thread_1_entry()
[all …]
Dthreadx_thread_completed_test.c15 static TX_THREAD thread_0; variable
37 if (thread_ptr != &thread_0) in entry_exit_notify()
67 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 1, in test_application_define()
73 status += tx_thread_entry_exit_notify(&thread_0, entry_exit_notify); in test_application_define()
125 _tx_thread_created_ptr = &thread_0; in test_application_define()
168 status = tx_thread_suspend(&thread_0); in thread_1_entry()
180 status = tx_thread_delete(&thread_0); in thread_1_entry()
231 if ((thread_0.tx_thread_state == TX_COMPLETED) && (thread_0_counter == 1) && in thread_1_entry()
Dthreadx_thread_information_test.c9 static TX_THREAD thread_0; variable
34 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 1, in test_application_define()
84 …status = tx_thread_info_get(&thread_0, TX_NULL, TX_NULL, TX_NULL, TX_NULL, TX_NULL, TX_NULL, TX_N… in thread_0_entry()
85 …status += tx_thread_info_get(&thread_0, &name, &state, &run_count, &priority, &preemption_threshol… in thread_0_entry()
88 …if ((status != TX_SUCCESS) || (state != TX_READY) || (run_count != thread_0.tx_thread_run_count) |… in thread_0_entry()
89 …(time_slice != 0) || (next_thread != thread_0.tx_thread_created_next) || (suspended_thread != thre… in thread_0_entry()
113 …status = tx_thread_performance_info_get(&thread_0, TX_NULL, TX_NULL, TX_NULL, TX_NULL, TX_NULL, T… in thread_0_entry()
114 …status += tx_thread_performance_info_get(&thread_0, &resumptions, &suspensions, &solicited_preempt… in thread_0_entry()
118 …tatus != TX_SUCCESS) || (resumptions != thread_0.tx_thread_performance_resume_count) || (suspensio… in thread_0_entry()
119 …(solicited_preemptions != thread_0.tx_thread_performance_solicited_preemption_count) || (interrupt… in thread_0_entry()
[all …]
Dthreadx_thread_simple_suspend_test.c8 static TX_THREAD thread_0; variable
42 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 1, in test_application_define()
89 tx_thread_suspend(&thread_0); in thread_0_entry()
100 if ((thread_0.tx_thread_state != TX_SUSPENDED) || (thread_0_counter != 1)) in thread_1_entry()
Dthreadx_thread_multiple_suspension_test.c11 static TX_THREAD thread_0; variable
62 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 1, in test_application_define()
162 tx_thread_suspend(&thread_0); in thread_0_entry()
244 if ((thread_0.tx_thread_state != TX_SUSPENDED) || (thread_1.tx_thread_state != TX_SUSPENDED) || in thread_5_entry()
266 status = tx_thread_resume(&thread_0); in thread_5_entry()
269 if ((thread_0.tx_thread_state != TX_READY) || (thread_1.tx_thread_state != TX_SUSPENDED) || 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 …]
Dthreadx_thread_preemptable_suspension_test.c10 static TX_THREAD thread_0; variable
61 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 1, in test_application_define()
161 tx_thread_suspend(&thread_0); in thread_0_entry()
243 if ((thread_0.tx_thread_state != TX_SUSPENDED) || (thread_1.tx_thread_state != TX_SUSPENDED) || in thread_5_entry()
265 status = tx_thread_resume(&thread_0); in thread_5_entry()
268 if ((thread_0.tx_thread_state != TX_SUSPENDED) || (thread_1.tx_thread_state != TX_SUSPENDED) || 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 …]
Dthreadx_thread_simple_sleep_non_clear_test.c8 static TX_THREAD thread_0; variable
37 thread_0.tx_thread_timer.tx_timer_internal_re_initialize_ticks = 1; in test_application_define()
42 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 1, in test_application_define()

12345678910>>...18