diff options
author | Brian Paul <brianp@vmware.com> | 2010-03-27 08:59:17 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-03-27 08:59:17 -0600 |
commit | 9903d09f82c525690cd016e7747ba2fe96c6468f (patch) | |
tree | 68337b4ca2de71ecf917ae38dde1a27ce17dd463 /src/mesa | |
parent | 038d2607ab759638217ded3bd1b232d389975af5 (diff) | |
download | external_mesa3d-9903d09f82c525690cd016e7747ba2fe96c6468f.zip external_mesa3d-9903d09f82c525690cd016e7747ba2fe96c6468f.tar.gz external_mesa3d-9903d09f82c525690cd016e7747ba2fe96c6468f.tar.bz2 |
mesa: move/update hash function comments
(cherry picked from commit 535742d75f0096b22d1b8ff203ae561167af18f7)
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/hash.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/mesa/main/hash.c b/src/mesa/main/hash.c index f4af3fd..b624e6e 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) { |