* Compute the hash code associated with a LOCKTAG. * * To avoid unnecessary recomputations of the hash code, we try to do this * just once per function, and then pass it around as needed. Aside from * passing the hashcode to hash_search_with_hash_value(), we can extract * the lock partition number from the hashcode. */
| 567 | * the lock partition number from the hashcode. |
| 568 | */ |
| 569 | uint32 |
| 570 | LockTagHashCode(const LOCKTAG *locktag) |
| 571 | { |
| 572 | return get_hash_value(LockMethodLockHash, (const void *) locktag); |
| 573 | } |
| 574 | |
| 575 | /* |
| 576 | * Compute the hash code associated with a PROCLOCKTAG. |
no test coverage detected