InnoDB Plugin
1.0
|
#include "ut0rnd.h"
Functions | |
UNIV_INLINE hash_cell_t * | hash_get_nth_cell (hash_table_t *table, ulint n) |
UNIV_INLINE void | hash_table_clear (hash_table_t *table) |
UNIV_INLINE ulint | hash_get_n_cells (hash_table_t *table) |
UNIV_INLINE ulint | hash_calc_hash (ulint fold, hash_table_t *table) |
UNIV_INLINE ulint | hash_get_sync_obj_index (hash_table_t *table, ulint fold) |
UNIV_INLINE mem_heap_t * | hash_get_nth_heap (hash_table_t *table, ulint i) |
UNIV_INLINE mem_heap_t * | hash_get_heap (hash_table_t *table, ulint fold) |
UNIV_INLINE ib_mutex_t * | hash_get_nth_mutex (hash_table_t *table, ulint i) |
UNIV_INLINE ib_mutex_t * | hash_get_mutex (hash_table_t *table, ulint fold) |
UNIV_INLINE rw_lock_t * | hash_get_nth_lock (hash_table_t *table, ulint i) |
UNIV_INLINE rw_lock_t * | hash_get_lock (hash_table_t *table, ulint fold) |
The simple hash table utility
Created 5/20/1997 Heikki Tuuri
UNIV_INLINE ulint hash_calc_hash | ( | ulint | fold, |
hash_table_t * | table | ||
) |
Calculates the hash value from a folded value.
fold | in: folded value |
table | in: hash table |
UNIV_INLINE mem_heap_t* hash_get_heap | ( | hash_table_t * | table, |
ulint | fold | ||
) |
Gets the heap for a fold value in a hash table.
table | in: hash table |
fold | in: fold |
UNIV_INLINE rw_lock_t* hash_get_lock | ( | hash_table_t * | table, |
ulint | fold | ||
) |
Gets the rw_lock for a fold value in a hash table.
table | in: hash table |
fold | in: fold |
UNIV_INLINE ib_mutex_t* hash_get_mutex | ( | hash_table_t * | table, |
ulint | fold | ||
) |
Gets the mutex for a fold value in a hash table.
table | in: hash table |
fold | in: fold |
UNIV_INLINE ulint hash_get_n_cells | ( | hash_table_t * | table | ) |
Returns the number of cells in a hash table.
table | in: table |
UNIV_INLINE hash_cell_t* hash_get_nth_cell | ( | hash_table_t * | table, |
ulint | n | ||
) |
Gets the nth cell in a hash table.
table | in: hash table |
n | in: cell index |
UNIV_INLINE mem_heap_t* hash_get_nth_heap | ( | hash_table_t * | table, |
ulint | i | ||
) |
Gets the nth heap in a hash table.
table | in: hash table |
i | in: index of the heap |
UNIV_INLINE rw_lock_t* hash_get_nth_lock | ( | hash_table_t * | table, |
ulint | i | ||
) |
Gets the nth rw_lock in a hash table.
table | in: hash table |
i | in: index of the rw_lock |
UNIV_INLINE ib_mutex_t* hash_get_nth_mutex | ( | hash_table_t * | table, |
ulint | i | ||
) |
Gets the nth mutex in a hash table.
table | in: hash table |
i | in: index of the mutex |
UNIV_INLINE ulint hash_get_sync_obj_index | ( | hash_table_t * | table, |
ulint | fold | ||
) |
Gets the sync object index for a fold value in a hash table.
table | in: hash table |
fold | in: fold |
UNIV_INLINE void hash_table_clear | ( | hash_table_t * | table | ) |
Clears a hash table so that all the cells become empty.
table | in/out: hash table |