Lines Matching refs:thread_ptr

87 VOID  _tx_mutex_priority_change(TX_THREAD *thread_ptr, UINT new_priority)  in _tx_mutex_priority_change()  argument
114 if (thread_ptr -> tx_thread_state != TX_READY) in _tx_mutex_priority_change()
118 thread_ptr -> tx_thread_priority = new_priority; in _tx_mutex_priority_change()
121 if (thread_ptr -> tx_thread_user_preempt_threshold < new_priority) in _tx_mutex_priority_change()
125thread_ptr -> tx_thread_preempt_threshold = thread_ptr -> tx_thread_user_preempt_threshold; in _tx_mutex_priority_change()
131 thread_ptr -> tx_thread_preempt_threshold = new_priority; in _tx_mutex_priority_change()
146 original_priority = thread_ptr -> tx_thread_priority; in _tx_mutex_priority_change()
154 thread_ptr -> tx_thread_state = TX_PRIORITY_CHANGE; in _tx_mutex_priority_change()
157 _tx_thread_system_ni_suspend(thread_ptr, ((ULONG) 0)); in _tx_mutex_priority_change()
163 thread_ptr -> tx_thread_priority = new_priority; in _tx_mutex_priority_change()
166 if (thread_ptr -> tx_thread_user_preempt_threshold < new_priority) in _tx_mutex_priority_change()
170thread_ptr -> tx_thread_preempt_threshold = thread_ptr -> tx_thread_user_preempt_threshold; in _tx_mutex_priority_change()
176 thread_ptr -> tx_thread_preempt_threshold = new_priority; in _tx_mutex_priority_change()
180 _tx_thread_system_ni_resume(thread_ptr); in _tx_mutex_priority_change()
190 thread_ptr -> tx_thread_state = TX_PRIORITY_CHANGE; in _tx_mutex_priority_change()
193 thread_ptr -> tx_thread_suspending = TX_TRUE; in _tx_mutex_priority_change()
196 thread_ptr -> tx_thread_timer.tx_timer_internal_remaining_ticks = ((ULONG) 0); in _tx_mutex_priority_change()
203 _tx_thread_system_suspend(thread_ptr); in _tx_mutex_priority_change()
212 thread_ptr -> tx_thread_priority = new_priority; in _tx_mutex_priority_change()
215 if (thread_ptr -> tx_thread_user_preempt_threshold < new_priority) in _tx_mutex_priority_change()
219thread_ptr -> tx_thread_preempt_threshold = thread_ptr -> tx_thread_user_preempt_threshold; in _tx_mutex_priority_change()
225 thread_ptr -> tx_thread_preempt_threshold = new_priority; in _tx_mutex_priority_change()
232 _tx_thread_system_resume(thread_ptr); in _tx_mutex_priority_change()
248 if (thread_ptr != next_execute_ptr) in _tx_mutex_priority_change()
252 if (thread_ptr -> tx_thread_state == TX_READY) in _tx_mutex_priority_change()
256 if (thread_ptr -> tx_thread_priority <= next_execute_ptr -> tx_thread_priority) in _tx_mutex_priority_change()
260 if (thread_ptr == execute_ptr) in _tx_mutex_priority_change()
267 _tx_thread_execute_ptr = thread_ptr; in _tx_mutex_priority_change()
274 … _tx_thread_priority_list[thread_ptr -> tx_thread_priority] = thread_ptr; in _tx_mutex_priority_change()
282 … if (thread_ptr -> tx_thread_preempt_threshold < thread_ptr -> tx_thread_priority) in _tx_mutex_priority_change()
288 … if (thread_ptr -> tx_thread_preempt_threshold <= next_execute_ptr -> tx_thread_priority) in _tx_mutex_priority_change()
293 _tx_thread_execute_ptr = thread_ptr; in _tx_mutex_priority_change()
300 … _tx_thread_priority_list[thread_ptr -> tx_thread_priority] = thread_ptr; in _tx_mutex_priority_change()
315 map_index = (thread_ptr -> tx_thread_priority)/ ((UINT) 32); in _tx_mutex_priority_change()
318 TX_DIV32_BIT_SET(thread_ptr -> tx_thread_priority, priority_bit) in _tx_mutex_priority_change()
323 TX_MOD32_BIT_SET(thread_ptr -> tx_thread_priority, priority_bit) in _tx_mutex_priority_change()