Lines Matching refs:mutex_ptr
76 UINT _tx_mutex_get(TX_MUTEX *mutex_ptr, ULONG wait_option) in _tx_mutex_get() argument
99 mutex_ptr -> tx_mutex_performance_get_count++; in _tx_mutex_get()
103 …INE_INSERT(TX_TRACE_MUTEX_GET, mutex_ptr, wait_option, TX_POINTER_TO_ULONG_CONVERT(mutex_ptr -> tx… in _tx_mutex_get()
112 if (mutex_ptr -> tx_mutex_ownership_count == ((UINT) 0)) in _tx_mutex_get()
116 mutex_ptr -> tx_mutex_ownership_count = ((UINT) 1); in _tx_mutex_get()
119 mutex_ptr -> tx_mutex_owner = thread_ptr; in _tx_mutex_get()
126 if (mutex_ptr -> tx_mutex_inherit == TX_TRUE) in _tx_mutex_get()
130 mutex_ptr -> tx_mutex_original_priority = thread_ptr -> tx_thread_priority; in _tx_mutex_get()
133 mutex_ptr -> tx_mutex_highest_priority_waiting = ((UINT) TX_MAX_PRIORITIES); in _tx_mutex_get()
149 next_mutex -> tx_mutex_owned_previous = mutex_ptr; in _tx_mutex_get()
150 previous_mutex -> tx_mutex_owned_next = mutex_ptr; in _tx_mutex_get()
153 mutex_ptr -> tx_mutex_owned_previous = previous_mutex; in _tx_mutex_get()
154 mutex_ptr -> tx_mutex_owned_next = next_mutex; in _tx_mutex_get()
160 thread_ptr -> tx_thread_owned_mutex_list = mutex_ptr; in _tx_mutex_get()
161 mutex_ptr -> tx_mutex_owned_next = mutex_ptr; in _tx_mutex_get()
162 mutex_ptr -> tx_mutex_owned_previous = mutex_ptr; in _tx_mutex_get()
177 else if (mutex_ptr -> tx_mutex_owner == thread_ptr) in _tx_mutex_get()
182 mutex_ptr -> tx_mutex_ownership_count++; in _tx_mutex_get()
213 mutex_owner = mutex_ptr -> tx_mutex_owner; in _tx_mutex_get()
221 mutex_ptr -> tx_mutex_performance_suspension_count++; in _tx_mutex_get()
233 mutex_ptr -> tx_mutex_performance_priority_inversion_count++; in _tx_mutex_get()
251 thread_ptr -> tx_thread_suspend_control_block = (VOID *) mutex_ptr; in _tx_mutex_get()
261 if (mutex_ptr -> tx_mutex_suspended_count == TX_NO_SUSPENSIONS) in _tx_mutex_get()
266 mutex_ptr -> tx_mutex_suspension_list = thread_ptr; in _tx_mutex_get()
274 … next_thread = mutex_ptr -> tx_mutex_suspension_list; in _tx_mutex_get()
283 mutex_ptr -> tx_mutex_suspended_count++; in _tx_mutex_get()
292 if (mutex_ptr -> tx_mutex_inherit == TX_TRUE) 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()
325 mutex_ptr -> tx_mutex_performance__priority_inheritance_count++; in _tx_mutex_get()
351 if (mutex_ptr -> tx_mutex_inherit == TX_TRUE) 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()
384 mutex_ptr -> tx_mutex_performance__priority_inheritance_count++; in _tx_mutex_get()