Lines Matching refs:thread_ptr

89 UINT  _tx_thread_priority_change(TX_THREAD *thread_ptr, UINT new_priority, UINT *old_priority)  in _tx_thread_priority_change()  argument
103 *old_priority = thread_ptr -> tx_thread_user_priority; in _tx_thread_priority_change()
106 …_INSERT(TX_TRACE_THREAD_PRIORITY_CHANGE, thread_ptr, new_priority, thread_ptr -> tx_thread_priorit… in _tx_thread_priority_change()
112 if (thread_ptr -> tx_thread_state != TX_READY) in _tx_thread_priority_change()
117 thread_ptr -> tx_thread_user_priority = new_priority; in _tx_thread_priority_change()
118 thread_ptr -> tx_thread_user_preempt_threshold = new_priority; in _tx_thread_priority_change()
122 if (new_priority < thread_ptr -> tx_thread_inherit_priority) in _tx_thread_priority_change()
126 thread_ptr -> tx_thread_priority = new_priority; in _tx_thread_priority_change()
127 thread_ptr -> tx_thread_preempt_threshold = new_priority; in _tx_thread_priority_change()
133 thread_ptr -> tx_thread_priority = thread_ptr -> tx_thread_inherit_priority; in _tx_thread_priority_change()
134 thread_ptr -> tx_thread_preempt_threshold = thread_ptr -> tx_thread_inherit_priority; in _tx_thread_priority_change()
144 thread_ptr -> tx_thread_state = TX_PRIORITY_CHANGE; in _tx_thread_priority_change()
150 original_priority = thread_ptr -> tx_thread_priority; in _tx_thread_priority_change()
158 _tx_thread_system_ni_suspend(thread_ptr, ((ULONG) 0)); in _tx_thread_priority_change()
164 thread_ptr -> tx_thread_user_priority = new_priority; in _tx_thread_priority_change()
165 thread_ptr -> tx_thread_user_preempt_threshold = new_priority; in _tx_thread_priority_change()
169 if (new_priority < thread_ptr -> tx_thread_inherit_priority) in _tx_thread_priority_change()
173 thread_ptr -> tx_thread_priority = new_priority; in _tx_thread_priority_change()
174 thread_ptr -> tx_thread_preempt_threshold = new_priority; in _tx_thread_priority_change()
180 thread_ptr -> tx_thread_priority = thread_ptr -> tx_thread_inherit_priority; in _tx_thread_priority_change()
181 thread_ptr -> tx_thread_preempt_threshold = thread_ptr -> tx_thread_inherit_priority; in _tx_thread_priority_change()
185 _tx_thread_system_ni_resume(thread_ptr); in _tx_thread_priority_change()
194 thread_ptr -> tx_thread_suspending = TX_TRUE; in _tx_thread_priority_change()
197 thread_ptr -> tx_thread_timer.tx_timer_internal_remaining_ticks = ((ULONG) 0); in _tx_thread_priority_change()
204 _tx_thread_system_suspend(thread_ptr); in _tx_thread_priority_change()
210 thread_ptr -> tx_thread_user_priority = new_priority; in _tx_thread_priority_change()
211 thread_ptr -> tx_thread_user_preempt_threshold = new_priority; in _tx_thread_priority_change()
215 if (new_priority < thread_ptr -> tx_thread_inherit_priority) in _tx_thread_priority_change()
219 thread_ptr -> tx_thread_priority = new_priority; in _tx_thread_priority_change()
220 thread_ptr -> tx_thread_preempt_threshold = new_priority; in _tx_thread_priority_change()
226 thread_ptr -> tx_thread_priority = thread_ptr -> tx_thread_inherit_priority; in _tx_thread_priority_change()
227 thread_ptr -> tx_thread_preempt_threshold = thread_ptr -> tx_thread_inherit_priority; in _tx_thread_priority_change()
231 _tx_thread_system_resume(thread_ptr); in _tx_thread_priority_change()
244 if (thread_ptr != next_execute_ptr) in _tx_thread_priority_change()
248 if (thread_ptr -> tx_thread_state == TX_READY) in _tx_thread_priority_change()
252 if (thread_ptr -> tx_thread_priority <= next_execute_ptr -> tx_thread_priority) in _tx_thread_priority_change()
256 if (thread_ptr == execute_ptr) in _tx_thread_priority_change()
263 _tx_thread_execute_ptr = thread_ptr; in _tx_thread_priority_change()
270 … _tx_thread_priority_list[thread_ptr -> tx_thread_priority] = thread_ptr; in _tx_thread_priority_change()