Lines Matching refs:thread_ptr
82 TX_THREAD *thread_ptr; in _tx_mutex_get() local
110 TX_THREAD_GET_CURRENT(thread_ptr) in _tx_mutex_get()
120 mutex_ptr -> tx_mutex_owner = thread_ptr; in _tx_mutex_get()
123 if (thread_ptr != TX_NULL) in _tx_mutex_get()
131 mutex_ptr -> tx_mutex_original_priority = thread_ptr -> tx_thread_priority; in _tx_mutex_get()
138 next_mutex = thread_ptr -> tx_thread_owned_mutex_list; in _tx_mutex_get()
161 thread_ptr -> tx_thread_owned_mutex_list = mutex_ptr; in _tx_mutex_get()
167 thread_ptr -> tx_thread_owned_mutex_count++; in _tx_mutex_get()
178 else if (mutex_ptr -> tx_mutex_owner == thread_ptr) in _tx_mutex_get()
225 if (thread_ptr -> tx_thread_priority < mutex_owner -> tx_thread_priority) in _tx_mutex_get()
242 thread_ptr -> tx_thread_performance_priority_inversion_count++; in _tx_mutex_get()
248 thread_ptr -> tx_thread_suspend_cleanup = &(_tx_mutex_cleanup); in _tx_mutex_get()
252 thread_ptr -> tx_thread_suspend_control_block = (VOID *) mutex_ptr; in _tx_mutex_get()
258 thread_ptr -> tx_thread_suspension_sequence++; in _tx_mutex_get()
267 mutex_ptr -> tx_mutex_suspension_list = thread_ptr; in _tx_mutex_get()
268 thread_ptr -> tx_thread_suspended_next = thread_ptr; in _tx_mutex_get()
269 thread_ptr -> tx_thread_suspended_previous = thread_ptr; in _tx_mutex_get()
276 thread_ptr -> tx_thread_suspended_next = next_thread; in _tx_mutex_get()
278 thread_ptr -> tx_thread_suspended_previous = previous_thread; in _tx_mutex_get()
279 previous_thread -> tx_thread_suspended_next = thread_ptr; in _tx_mutex_get()
280 next_thread -> tx_thread_suspended_previous = thread_ptr; in _tx_mutex_get()
287 thread_ptr -> tx_thread_state = TX_MUTEX_SUSP; in _tx_mutex_get()
297 … if (mutex_ptr -> tx_mutex_highest_priority_waiting > thread_ptr -> tx_thread_priority) in _tx_mutex_get()
301 … mutex_ptr -> tx_mutex_highest_priority_waiting = thread_ptr -> tx_thread_priority; in _tx_mutex_get()
305 … if (thread_ptr -> tx_thread_priority < mutex_owner -> tx_thread_inherit_priority) in _tx_mutex_get()
309 … mutex_owner -> tx_thread_inherit_priority = thread_ptr -> tx_thread_priority; in _tx_mutex_get()
313 if (mutex_owner -> tx_thread_priority > thread_ptr -> tx_thread_priority) in _tx_mutex_get()
318 _tx_mutex_priority_change(mutex_owner, thread_ptr -> tx_thread_priority); in _tx_mutex_get()
332 _tx_thread_system_ni_suspend(thread_ptr, wait_option); in _tx_mutex_get()
339 thread_ptr -> tx_thread_suspending = TX_TRUE; in _tx_mutex_get()
342 thread_ptr -> tx_thread_timer.tx_timer_internal_remaining_ticks = wait_option; in _tx_mutex_get()
356 … if (mutex_ptr -> tx_mutex_highest_priority_waiting > thread_ptr -> tx_thread_priority) in _tx_mutex_get()
360 … mutex_ptr -> tx_mutex_highest_priority_waiting = thread_ptr -> tx_thread_priority; in _tx_mutex_get()
364 … if (thread_ptr -> tx_thread_priority < mutex_owner -> tx_thread_inherit_priority) in _tx_mutex_get()
368 … mutex_owner -> tx_thread_inherit_priority = thread_ptr -> tx_thread_priority; in _tx_mutex_get()
372 if (mutex_owner -> tx_thread_priority > thread_ptr -> tx_thread_priority) in _tx_mutex_get()
377 _tx_mutex_priority_change(mutex_owner, thread_ptr -> tx_thread_priority); in _tx_mutex_get()
391 _tx_thread_system_suspend(thread_ptr); in _tx_mutex_get()
394 status = thread_ptr -> tx_thread_suspend_status; in _tx_mutex_get()