Lines Matching refs:status

66 void  test_control_return(UINT status);
76 UINT status; in timer_entry() local
79 status = tx_mutex_create(&mutex_4, "mutex 4", TX_NO_INHERIT); in timer_entry()
82 if (status != TX_CALLER_ERROR) in timer_entry()
90 status = tx_mutex_delete(&mutex_2); in timer_entry()
93 if (status != TX_CALLER_ERROR) in timer_entry()
101 status = tx_mutex_get(&mutex_2, 100); in timer_entry()
104 if (status != TX_WAIT_ERROR) in timer_entry()
122 UINT status; in test_isr() local
126 status = tx_mutex_create(&mutex_4, "mutex 4", TX_NO_INHERIT); in test_isr()
129 if (status != TX_CALLER_ERROR) in test_isr()
137 status = tx_mutex_delete(&mutex_2); in test_isr()
140 if (status != TX_CALLER_ERROR) in test_isr()
148 status = tx_mutex_get(&mutex_2, 100); in test_isr()
151 if (status != TX_WAIT_ERROR) in test_isr()
159 status = tx_mutex_get(&mutex_2, TX_NO_WAIT); in test_isr()
162 if (status != TX_CALLER_ERROR) in test_isr()
170 status = tx_mutex_put(&mutex_2); in test_isr()
173 if (status != TX_CALLER_ERROR) in test_isr()
195 UINT status; in test_application_define() local
204 status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 1, in test_application_define()
210 status += tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1, in test_application_define()
215 status += tx_thread_create(&thread_2, "thread 2", thread_2_entry, 1, in test_application_define()
220 status += tx_thread_create(&thread_3, "thread 3", thread_3_entry, 1, in test_application_define()
225 status += tx_thread_create(&thread_4, "thread 4", thread_4_entry, 1, in test_application_define()
231 if (status != TX_SUCCESS) in test_application_define()
239 status = tx_mutex_create(&mutex_0, "mutex 0", TX_NO_INHERIT); in test_application_define()
242 if (status != TX_SUCCESS) in test_application_define()
250 status = tx_mutex_create(&mutex_1, "mutex 1", TX_NO_INHERIT); in test_application_define()
253 if (status != TX_SUCCESS) in test_application_define()
261 status = tx_mutex_create(&mutex_2, "mutex 2", TX_INHERIT); in test_application_define()
264 if (status != TX_SUCCESS) in test_application_define()
272 status = tx_mutex_create(&mutex_3, "mutex 3", TX_INHERIT); in test_application_define()
275 if (status != TX_SUCCESS) in test_application_define()
283 status = tx_mutex_create(&mutex_8, "mutex 8", TX_NO_INHERIT); in test_application_define()
286 if (status != TX_SUCCESS) in test_application_define()
301 UINT status; in thread_0_entry() local
314 status = tx_mutex_create(&mutex_memory.mutex, "mutex memory", TX_INHERIT); in thread_0_entry()
318 if ((status != TX_SUCCESS) || in thread_0_entry()
336 status = tx_mutex_create(TX_NULL, "mutex 2", TX_INHERIT); in thread_0_entry()
339 if (status != TX_MUTEX_ERROR) in thread_0_entry()
348 status = _txe_mutex_create(&mutex_5, "mutex 5", TX_INHERIT, (sizeof(TX_MUTEX)+1)); in thread_0_entry()
351 if (status != TX_MUTEX_ERROR) in thread_0_entry()
360 status = tx_mutex_create(&mutex_2, "mutex 2", TX_INHERIT); in thread_0_entry()
363 if (status != TX_MUTEX_ERROR) in thread_0_entry()
372 status = tx_mutex_create(&mutex_4, "mutex 4", 14); in thread_0_entry()
375 if (status != TX_INHERIT_ERROR) in thread_0_entry()
384 status = tx_mutex_delete(TX_NULL); in thread_0_entry()
387 if (status != TX_MUTEX_ERROR) in thread_0_entry()
397 status = tx_mutex_delete(&mutex_4); in thread_0_entry()
400 if (status != TX_MUTEX_ERROR) in thread_0_entry()
409 status = tx_mutex_get(TX_NULL, TX_NO_WAIT); in thread_0_entry()
412 if (status != TX_MUTEX_ERROR) in thread_0_entry()
422 status = tx_mutex_get(&mutex_4, TX_NO_WAIT); in thread_0_entry()
425 if (status != TX_MUTEX_ERROR) in thread_0_entry()
434 status = tx_mutex_put(TX_NULL); in thread_0_entry()
437 if (status != TX_MUTEX_ERROR) in thread_0_entry()
447 status = tx_mutex_put(&mutex_4); in thread_0_entry()
450 if (status != TX_MUTEX_ERROR) in thread_0_entry()
460 status = tx_mutex_get(&mutex_0, TX_NO_WAIT); in thread_0_entry()
463 if (status != TX_SUCCESS) in thread_0_entry()
472 status = tx_mutex_get(&mutex_0, TX_NO_WAIT); in thread_0_entry()
475 if (status != TX_SUCCESS) in thread_0_entry()
484 status = tx_mutex_put(&mutex_0); in thread_0_entry()
487 if ((status != TX_SUCCESS) || (mutex_0.tx_mutex_ownership_count != 1)) in thread_0_entry()
496 status = tx_mutex_put(&mutex_0); in thread_0_entry()
499 if ((status != TX_SUCCESS) != (mutex_0.tx_mutex_owner != TX_NULL)) in thread_0_entry()
511 status = tx_mutex_get(&mutex_1, TX_NO_WAIT); in thread_0_entry()
514 if (status != TX_NOT_AVAILABLE) in thread_0_entry()
526 status = tx_mutex_delete(&mutex_0); in thread_0_entry()
529 if (status != TX_SUCCESS) in thread_0_entry()
537 status = tx_mutex_delete(&mutex_1); in thread_0_entry()
540 if (status != TX_SUCCESS) in thread_0_entry()
549 status = tx_mutex_get(&mutex_2, TX_NO_WAIT); in thread_0_entry()
552 if (status != TX_SUCCESS) in thread_0_entry()
561 status = tx_mutex_get(&mutex_3, TX_NO_WAIT); in thread_0_entry()
564 if (status != TX_SUCCESS) in thread_0_entry()
604 status = tx_mutex_put(&mutex_2); in thread_0_entry()
605 status += tx_mutex_put(&mutex_2); in thread_0_entry()
608 if (status != TX_NOT_OWNED) in thread_0_entry()
617 status = _tx_mutex_put(&mutex_2); in thread_0_entry()
620 if (status != TX_NOT_OWNED) in thread_0_entry()
629 status = tx_mutex_delete(&mutex_2); in thread_0_entry()
632 if (status != TX_SUCCESS) in thread_0_entry()
641 status = tx_mutex_get(&mutex_8, TX_WAIT_FOREVER); in thread_0_entry()
644 status += tx_thread_resume(&thread_3); in thread_0_entry()
645 status += tx_thread_resume(&thread_4); in thread_0_entry()
651 status += tx_mutex_put(&mutex_8); in thread_0_entry()
654 if (status != TX_SUCCESS) in thread_0_entry()
662 status = tx_mutex_delete(&mutex_3); in thread_0_entry()
665 if (status != TX_SUCCESS) in thread_0_entry()
684 UINT status; in thread_1_entry() local
690 status = tx_mutex_get(&mutex_1, TX_NO_WAIT); in thread_1_entry()
693 if (status != TX_SUCCESS) in thread_1_entry()
705 status = tx_mutex_put(&mutex_1); in thread_1_entry()
708 if (status != TX_SUCCESS) in thread_1_entry()
717 status = tx_mutex_create(&mutex_6, "mutex 6", TX_NO_INHERIT); in thread_1_entry()
718 status += tx_mutex_create(&mutex_7, "mutex 7", TX_NO_INHERIT); in thread_1_entry()
719 status += tx_mutex_get(&mutex_6, TX_NO_WAIT); in thread_1_entry()
720 status += tx_mutex_get(&mutex_7, TX_NO_WAIT); in thread_1_entry()
721 status += tx_mutex_get(&mutex_6, TX_NO_WAIT); in thread_1_entry()
722 status += tx_mutex_get(&mutex_7, TX_NO_WAIT); in thread_1_entry()
725 if (status != TX_SUCCESS) in thread_1_entry()