Lines Matching refs:mutex_ptr

79 UINT  _tx_mutex_put(TX_MUTEX *mutex_ptr)  in _tx_mutex_put()  argument
111 mutex_ptr -> tx_mutex_performance_put_count++; in _tx_mutex_put()
115 …E_IN_LINE_INSERT(TX_TRACE_MUTEX_PUT, mutex_ptr, TX_POINTER_TO_ULONG_CONVERT(mutex_ptr -> tx_mutex_… in _tx_mutex_put()
121 if (mutex_ptr -> tx_mutex_ownership_count != ((UINT) 0)) in _tx_mutex_put()
125 thread_ptr = mutex_ptr -> tx_mutex_owner; in _tx_mutex_put()
131 if (mutex_ptr -> tx_mutex_owner != current_thread) in _tx_mutex_put()
155 mutex_ptr -> tx_mutex_ownership_count--; in _tx_mutex_put()
158 if (mutex_ptr -> tx_mutex_ownership_count != ((UINT) 0)) in _tx_mutex_put()
203 next_mutex = mutex_ptr -> tx_mutex_owned_next; in _tx_mutex_put()
204 … previous_mutex = mutex_ptr -> tx_mutex_owned_previous; in _tx_mutex_put()
209 if (thread_ptr -> tx_thread_owned_mutex_list == mutex_ptr) in _tx_mutex_put()
218 if (mutex_ptr -> tx_mutex_suspension_list == TX_NULL) in _tx_mutex_put()
222 if (mutex_ptr -> tx_mutex_inherit == TX_FALSE) in _tx_mutex_put()
226 mutex_ptr -> tx_mutex_owner = TX_NULL; in _tx_mutex_put()
245 if (mutex_ptr -> tx_mutex_inherit == TX_TRUE) in _tx_mutex_put()
315 if (mutex_ptr -> tx_mutex_suspended_count > ((UINT) 1)) in _tx_mutex_put()
319 if (mutex_ptr -> tx_mutex_inherit == TX_TRUE) in _tx_mutex_put()
339 status = _tx_mutex_prioritize(mutex_ptr); in _tx_mutex_put()
342 _tx_mutex_prioritize(mutex_ptr); in _tx_mutex_put()
363 if (mutex_ptr -> tx_mutex_suspension_list == TX_NULL) in _tx_mutex_put()
382mutex_ptr -> tx_mutex_highest_priority_waiting = (UINT) TX_MAX_PRIORITIES; in _tx_mutex_put()
385 if ((mutex_ptr -> tx_mutex_owner) -> tx_thread_priority != old_priority) in _tx_mutex_put()
389 … _tx_mutex_priority_change(mutex_ptr -> tx_mutex_owner, old_priority); in _tx_mutex_put()
402 mutex_ptr -> tx_mutex_owner = TX_NULL; in _tx_mutex_put()
417 thread_ptr = mutex_ptr -> tx_mutex_suspension_list; in _tx_mutex_put()
421 if (mutex_ptr -> tx_mutex_inherit == TX_TRUE) in _tx_mutex_put()
425 old_owner = mutex_ptr -> tx_mutex_owner; in _tx_mutex_put()
428mutex_ptr -> tx_mutex_original_priority = thread_ptr -> tx_thread_priority; in _tx_mutex_put()
431mutex_ptr -> tx_mutex_highest_priority_waiting = (UINT) TX_MAX_PRIORITIES; in _tx_mutex_put()
442 thread_ptr -> tx_thread_owned_mutex_list = mutex_ptr; in _tx_mutex_put()
443 mutex_ptr -> tx_mutex_owned_next = mutex_ptr; in _tx_mutex_put()
444 mutex_ptr -> tx_mutex_owned_previous = mutex_ptr; in _tx_mutex_put()
456 next_mutex -> tx_mutex_owned_previous = mutex_ptr; in _tx_mutex_put()
457 previous_mutex -> tx_mutex_owned_next = mutex_ptr; in _tx_mutex_put()
460 mutex_ptr -> tx_mutex_owned_previous = previous_mutex; in _tx_mutex_put()
461 mutex_ptr -> tx_mutex_owned_next = next_mutex; in _tx_mutex_put()
468 mutex_ptr -> tx_mutex_ownership_count = (UINT) 1; in _tx_mutex_put()
469 mutex_ptr -> tx_mutex_owner = thread_ptr; in _tx_mutex_put()
474 mutex_ptr -> tx_mutex_suspended_count--; in _tx_mutex_put()
477 suspended_count = mutex_ptr -> tx_mutex_suspended_count; in _tx_mutex_put()
486 mutex_ptr -> tx_mutex_suspension_list = TX_NULL; in _tx_mutex_put()
495 mutex_ptr -> tx_mutex_suspension_list = next_thread; in _tx_mutex_put()
514 if (mutex_ptr -> tx_mutex_inherit == TX_TRUE) in _tx_mutex_put()
520 if (mutex_ptr -> tx_mutex_suspended_count != ((ULONG) 0)) in _tx_mutex_put()
524 if (mutex_ptr -> tx_mutex_suspended_count > ((ULONG) 1)) in _tx_mutex_put()
532 status = _tx_mutex_prioritize(mutex_ptr); in _tx_mutex_put()
535 _tx_mutex_prioritize(mutex_ptr); in _tx_mutex_put()
542 suspended_thread = mutex_ptr -> tx_mutex_suspension_list; in _tx_mutex_put()
547mutex_ptr -> tx_mutex_highest_priority_waiting = suspended_thread -> tx_thread_priority; in _tx_mutex_put()
577 if (mutex_ptr -> tx_mutex_inherit == TX_TRUE) in _tx_mutex_put()
583 if (mutex_ptr -> tx_mutex_suspended_count != TX_NO_SUSPENSIONS) in _tx_mutex_put()
591 status = _tx_mutex_prioritize(mutex_ptr); in _tx_mutex_put()
594 _tx_mutex_prioritize(mutex_ptr); in _tx_mutex_put()
606 suspended_thread = mutex_ptr -> tx_mutex_suspension_list; in _tx_mutex_put()
611mutex_ptr -> tx_mutex_highest_priority_waiting = suspended_thread -> tx_thread_priority; in _tx_mutex_put()