Lines Matching refs:thread_ptr
81 TX_THREAD *thread_ptr; in _tx_mutex_get() local
109 TX_THREAD_GET_CURRENT(thread_ptr) in _tx_mutex_get()
119 mutex_ptr -> tx_mutex_owner = thread_ptr; in _tx_mutex_get()
122 if (thread_ptr != TX_NULL) in _tx_mutex_get()
130 mutex_ptr -> tx_mutex_original_priority = thread_ptr -> tx_thread_priority; in _tx_mutex_get()
137 next_mutex = thread_ptr -> tx_thread_owned_mutex_list; in _tx_mutex_get()
160 thread_ptr -> tx_thread_owned_mutex_list = mutex_ptr; in _tx_mutex_get()
166 thread_ptr -> tx_thread_owned_mutex_count++; in _tx_mutex_get()
177 else if (mutex_ptr -> tx_mutex_owner == thread_ptr) in _tx_mutex_get()
224 if (thread_ptr -> tx_thread_priority < mutex_owner -> tx_thread_priority) in _tx_mutex_get()
241 thread_ptr -> tx_thread_performance_priority_inversion_count++; in _tx_mutex_get()
247 thread_ptr -> tx_thread_suspend_cleanup = &(_tx_mutex_cleanup); in _tx_mutex_get()
251 thread_ptr -> tx_thread_suspend_control_block = (VOID *) mutex_ptr; in _tx_mutex_get()
257 thread_ptr -> tx_thread_suspension_sequence++; in _tx_mutex_get()
266 mutex_ptr -> tx_mutex_suspension_list = thread_ptr; in _tx_mutex_get()
267 thread_ptr -> tx_thread_suspended_next = thread_ptr; in _tx_mutex_get()
268 thread_ptr -> tx_thread_suspended_previous = thread_ptr; in _tx_mutex_get()
275 thread_ptr -> tx_thread_suspended_next = next_thread; in _tx_mutex_get()
277 thread_ptr -> tx_thread_suspended_previous = previous_thread; in _tx_mutex_get()
278 previous_thread -> tx_thread_suspended_next = thread_ptr; in _tx_mutex_get()
279 next_thread -> tx_thread_suspended_previous = thread_ptr; in _tx_mutex_get()
286 thread_ptr -> tx_thread_state = TX_MUTEX_SUSP; in _tx_mutex_get()
296 … if (mutex_ptr -> tx_mutex_highest_priority_waiting > thread_ptr -> tx_thread_priority) in _tx_mutex_get()
300 … mutex_ptr -> tx_mutex_highest_priority_waiting = thread_ptr -> tx_thread_priority; in _tx_mutex_get()
304 … if (thread_ptr -> tx_thread_priority < mutex_owner -> tx_thread_inherit_priority) in _tx_mutex_get()
308 … mutex_owner -> tx_thread_inherit_priority = thread_ptr -> tx_thread_priority; in _tx_mutex_get()
312 if (mutex_owner -> tx_thread_priority > thread_ptr -> tx_thread_priority) in _tx_mutex_get()
317 _tx_mutex_priority_change(mutex_owner, thread_ptr -> tx_thread_priority); in _tx_mutex_get()
331 _tx_thread_system_ni_suspend(thread_ptr, wait_option); in _tx_mutex_get()
338 thread_ptr -> tx_thread_suspending = TX_TRUE; in _tx_mutex_get()
341 thread_ptr -> tx_thread_timer.tx_timer_internal_remaining_ticks = wait_option; in _tx_mutex_get()
355 … if (mutex_ptr -> tx_mutex_highest_priority_waiting > thread_ptr -> tx_thread_priority) in _tx_mutex_get()
359 … mutex_ptr -> tx_mutex_highest_priority_waiting = thread_ptr -> tx_thread_priority; in _tx_mutex_get()
363 … if (thread_ptr -> tx_thread_priority < mutex_owner -> tx_thread_inherit_priority) in _tx_mutex_get()
367 … mutex_owner -> tx_thread_inherit_priority = thread_ptr -> tx_thread_priority; in _tx_mutex_get()
371 if (mutex_owner -> tx_thread_priority > thread_ptr -> tx_thread_priority) in _tx_mutex_get()
376 _tx_mutex_priority_change(mutex_owner, thread_ptr -> tx_thread_priority); in _tx_mutex_get()
390 _tx_thread_system_suspend(thread_ptr); in _tx_mutex_get()
393 status = thread_ptr -> tx_thread_suspend_status; in _tx_mutex_get()