Lines Matching refs:mutex_ptr

80 UINT  _tx_mutex_put(TX_MUTEX *mutex_ptr)  in _tx_mutex_put()  argument
112 mutex_ptr -> tx_mutex_performance_put_count++; in _tx_mutex_put()
116 …E_IN_LINE_INSERT(TX_TRACE_MUTEX_PUT, mutex_ptr, TX_POINTER_TO_ULONG_CONVERT(mutex_ptr -> tx_mutex_… in _tx_mutex_put()
122 if (mutex_ptr -> tx_mutex_ownership_count != ((UINT) 0)) in _tx_mutex_put()
126 thread_ptr = mutex_ptr -> tx_mutex_owner; in _tx_mutex_put()
132 if (mutex_ptr -> tx_mutex_owner != current_thread) in _tx_mutex_put()
156 mutex_ptr -> tx_mutex_ownership_count--; in _tx_mutex_put()
159 if (mutex_ptr -> tx_mutex_ownership_count != ((UINT) 0)) in _tx_mutex_put()
204 next_mutex = mutex_ptr -> tx_mutex_owned_next; in _tx_mutex_put()
205 … previous_mutex = mutex_ptr -> tx_mutex_owned_previous; in _tx_mutex_put()
210 if (thread_ptr -> tx_thread_owned_mutex_list == mutex_ptr) in _tx_mutex_put()
219 if (mutex_ptr -> tx_mutex_suspension_list == TX_NULL) in _tx_mutex_put()
223 if (mutex_ptr -> tx_mutex_inherit == TX_FALSE) in _tx_mutex_put()
227 mutex_ptr -> tx_mutex_owner = TX_NULL; in _tx_mutex_put()
246 if (mutex_ptr -> tx_mutex_inherit == TX_TRUE) in _tx_mutex_put()
316 if (mutex_ptr -> tx_mutex_suspended_count > ((UINT) 1)) in _tx_mutex_put()
320 if (mutex_ptr -> tx_mutex_inherit == TX_TRUE) in _tx_mutex_put()
340 status = _tx_mutex_prioritize(mutex_ptr); in _tx_mutex_put()
343 _tx_mutex_prioritize(mutex_ptr); in _tx_mutex_put()
364 if (mutex_ptr -> tx_mutex_suspension_list == TX_NULL) in _tx_mutex_put()
383mutex_ptr -> tx_mutex_highest_priority_waiting = (UINT) TX_MAX_PRIORITIES; in _tx_mutex_put()
386 if ((mutex_ptr -> tx_mutex_owner) -> tx_thread_priority != old_priority) in _tx_mutex_put()
390 … _tx_mutex_priority_change(mutex_ptr -> tx_mutex_owner, old_priority); in _tx_mutex_put()
403 mutex_ptr -> tx_mutex_owner = TX_NULL; in _tx_mutex_put()
418 thread_ptr = mutex_ptr -> tx_mutex_suspension_list; in _tx_mutex_put()
422 if (mutex_ptr -> tx_mutex_inherit == TX_TRUE) in _tx_mutex_put()
426 old_owner = mutex_ptr -> tx_mutex_owner; in _tx_mutex_put()
429mutex_ptr -> tx_mutex_original_priority = thread_ptr -> tx_thread_priority; in _tx_mutex_put()
432mutex_ptr -> tx_mutex_highest_priority_waiting = (UINT) TX_MAX_PRIORITIES; in _tx_mutex_put()
443 thread_ptr -> tx_thread_owned_mutex_list = mutex_ptr; in _tx_mutex_put()
444 mutex_ptr -> tx_mutex_owned_next = mutex_ptr; in _tx_mutex_put()
445 mutex_ptr -> tx_mutex_owned_previous = mutex_ptr; in _tx_mutex_put()
457 next_mutex -> tx_mutex_owned_previous = mutex_ptr; in _tx_mutex_put()
458 previous_mutex -> tx_mutex_owned_next = mutex_ptr; in _tx_mutex_put()
461 mutex_ptr -> tx_mutex_owned_previous = previous_mutex; in _tx_mutex_put()
462 mutex_ptr -> tx_mutex_owned_next = next_mutex; in _tx_mutex_put()
469 mutex_ptr -> tx_mutex_ownership_count = (UINT) 1; in _tx_mutex_put()
470 mutex_ptr -> tx_mutex_owner = thread_ptr; in _tx_mutex_put()
475 mutex_ptr -> tx_mutex_suspended_count--; in _tx_mutex_put()
478 suspended_count = mutex_ptr -> tx_mutex_suspended_count; in _tx_mutex_put()
487 mutex_ptr -> tx_mutex_suspension_list = TX_NULL; in _tx_mutex_put()
496 mutex_ptr -> tx_mutex_suspension_list = next_thread; in _tx_mutex_put()
515 if (mutex_ptr -> tx_mutex_inherit == TX_TRUE) in _tx_mutex_put()
521 if (mutex_ptr -> tx_mutex_suspended_count != ((ULONG) 0)) in _tx_mutex_put()
525 if (mutex_ptr -> tx_mutex_suspended_count > ((ULONG) 1)) in _tx_mutex_put()
533 status = _tx_mutex_prioritize(mutex_ptr); in _tx_mutex_put()
536 _tx_mutex_prioritize(mutex_ptr); in _tx_mutex_put()
543 suspended_thread = mutex_ptr -> tx_mutex_suspension_list; in _tx_mutex_put()
548mutex_ptr -> tx_mutex_highest_priority_waiting = suspended_thread -> tx_thread_priority; in _tx_mutex_put()
578 if (mutex_ptr -> tx_mutex_inherit == TX_TRUE) in _tx_mutex_put()
584 if (mutex_ptr -> tx_mutex_suspended_count != TX_NO_SUSPENSIONS) in _tx_mutex_put()
592 status = _tx_mutex_prioritize(mutex_ptr); in _tx_mutex_put()
595 _tx_mutex_prioritize(mutex_ptr); in _tx_mutex_put()
607 suspended_thread = mutex_ptr -> tx_mutex_suspension_list; in _tx_mutex_put()
612mutex_ptr -> tx_mutex_highest_priority_waiting = suspended_thread -> tx_thread_priority; in _tx_mutex_put()