Lines Matching refs:mutex_ptr
77 UINT _tx_mutex_get(TX_MUTEX *mutex_ptr, ULONG wait_option) in _tx_mutex_get() argument
100 mutex_ptr -> tx_mutex_performance_get_count++; in _tx_mutex_get()
104 …INE_INSERT(TX_TRACE_MUTEX_GET, mutex_ptr, wait_option, TX_POINTER_TO_ULONG_CONVERT(mutex_ptr -> tx… in _tx_mutex_get()
113 if (mutex_ptr -> tx_mutex_ownership_count == ((UINT) 0)) in _tx_mutex_get()
117 mutex_ptr -> tx_mutex_ownership_count = ((UINT) 1); in _tx_mutex_get()
120 mutex_ptr -> tx_mutex_owner = thread_ptr; in _tx_mutex_get()
127 if (mutex_ptr -> tx_mutex_inherit == TX_TRUE) in _tx_mutex_get()
131 mutex_ptr -> tx_mutex_original_priority = thread_ptr -> tx_thread_priority; in _tx_mutex_get()
134 mutex_ptr -> tx_mutex_highest_priority_waiting = ((UINT) TX_MAX_PRIORITIES); in _tx_mutex_get()
150 next_mutex -> tx_mutex_owned_previous = mutex_ptr; in _tx_mutex_get()
151 previous_mutex -> tx_mutex_owned_next = mutex_ptr; in _tx_mutex_get()
154 mutex_ptr -> tx_mutex_owned_previous = previous_mutex; in _tx_mutex_get()
155 mutex_ptr -> tx_mutex_owned_next = next_mutex; in _tx_mutex_get()
161 thread_ptr -> tx_thread_owned_mutex_list = mutex_ptr; in _tx_mutex_get()
162 mutex_ptr -> tx_mutex_owned_next = mutex_ptr; in _tx_mutex_get()
163 mutex_ptr -> tx_mutex_owned_previous = mutex_ptr; in _tx_mutex_get()
178 else if (mutex_ptr -> tx_mutex_owner == thread_ptr) in _tx_mutex_get()
183 mutex_ptr -> tx_mutex_ownership_count++; in _tx_mutex_get()
214 mutex_owner = mutex_ptr -> tx_mutex_owner; in _tx_mutex_get()
222 mutex_ptr -> tx_mutex_performance_suspension_count++; in _tx_mutex_get()
234 mutex_ptr -> tx_mutex_performance_priority_inversion_count++; in _tx_mutex_get()
252 thread_ptr -> tx_thread_suspend_control_block = (VOID *) mutex_ptr; in _tx_mutex_get()
262 if (mutex_ptr -> tx_mutex_suspended_count == TX_NO_SUSPENSIONS) in _tx_mutex_get()
267 mutex_ptr -> tx_mutex_suspension_list = thread_ptr; in _tx_mutex_get()
275 … next_thread = mutex_ptr -> tx_mutex_suspension_list; in _tx_mutex_get()
284 mutex_ptr -> tx_mutex_suspended_count++; in _tx_mutex_get()
293 if (mutex_ptr -> tx_mutex_inherit == TX_TRUE) 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()
326 mutex_ptr -> tx_mutex_performance__priority_inheritance_count++; in _tx_mutex_get()
352 if (mutex_ptr -> tx_mutex_inherit == TX_TRUE) 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()
385 mutex_ptr -> tx_mutex_performance__priority_inheritance_count++; in _tx_mutex_get()