summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-03-27 08:58:02 -0600
committerBrian Paul <brianp@vmware.com>2010-03-27 08:58:02 -0600
commit535742d75f0096b22d1b8ff203ae561167af18f7 (patch)
treedfc625ce392e498db42182944a6d3b29fd9c6dbd
parent8fe3b3f66ae57a1a6eca7f6dcb0455e14ad92075 (diff)
mesa: move/update hash function comments
-rw-r--r--src/mesa/main/hash.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/mesa/main/hash.c b/src/mesa/main/hash.c
index f28db7a80a..dbbe70e363 100644
--- a/src/mesa/main/hash.c
+++ b/src/mesa/main/hash.c
@@ -120,12 +120,8 @@ _mesa_DeleteHashTable(struct _mesa_HashTable *table)
/**
- * Lookup an entry in the hash table.
- *
- * \param table the hash table.
- * \param key the key.
- *
- * \return pointer to user's data or NULL if key not in table
+ * Lookup an entry in the hash table, without locking.
+ * \sa _mesa_HashLookup
*/
static INLINE void *
_mesa_HashLookup_unlocked(struct _mesa_HashTable *table, GLuint key)
@@ -147,6 +143,15 @@ _mesa_HashLookup_unlocked(struct _mesa_HashTable *table, GLuint key)
return NULL;
}
+
+/**
+ * Lookup an entry in the hash table.
+ *
+ * \param table the hash table.
+ * \param key the key.
+ *
+ * \return pointer to user's data or NULL if key not in table
+ */
void *
_mesa_HashLookup(struct _mesa_HashTable *table, GLuint key)
{