main: Use _mesa_HashLock/UnlockMutex consistently
authorThomas Helland <thomashelland90@gmail.com>
Thu, 18 May 2017 18:39:20 +0000 (20:39 +0200)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sun, 21 May 2017 23:17:37 +0000 (09:17 +1000)
commitf203a9f7d1a7fc4cf41b35a477eb1f3699418fe3
treefa859ac4fc5b14d6717597c2a3408a6d749cb263
parent90dfcc6b32c5a635d30cd04fc887a7ff78d3476d
main: Use _mesa_HashLock/UnlockMutex consistently

This is shorter and easier on the eyes. At the same time this
also ensures that we are always asserting that the table pointer
is not NULL. Currently that was not done for all situations.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/main/hash.c