Changeset 563 for trunk/kernel/libk/xhtab.h
- Timestamp:
- Oct 4, 2018, 11:16:13 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/xhtab.h
r459 r563 38 38 // The main goal is to speedup search by key in a large number of items of same type. 39 39 // For this purpose the set of all registered items is split in several subsets. 40 // Each subset is organised as an embedded double linked lists.40 // Each subset is organised as an embedded double linked xlists. 41 41 // - an item is uniquely identified by a <key>, that is a single uint32_t value. 42 42 // - From the <key> value, the hash table uses an item type specific xhtab_index() … … 93 93 item_print_key_t * item_print_key; /*! item specific function pointer */ 94 94 uint32_t items; /*! number of registered items */ 95 remote_ rwlock_tlock; /*! lock protecting hash table accesses */95 remote_busylock_t lock; /*! lock protecting hash table accesses */ 96 96 uint32_t current_index; /*! current item subset index */ 97 97 xptr_t current_xlist_xp; /*! xptr on current item xlist entry */ … … 149 149 * @ xhtab_xp : extended pointer on hash table. 150 150 *****************************************************************************************/ 151 void xhtab_ read_lock( xptr_t xhtab_xp );151 void xhtab_lock( xptr_t xhtab_xp ); 152 152 153 153 /****************************************************************************************** … … 157 157 * @ xhtab_xp : extended pointer on hash table. 158 158 *****************************************************************************************/ 159 void xhtab_ read_unlock( xptr_t xhtab_xp );159 void xhtab_unlock( xptr_t xhtab_xp ); 160 160 161 161 /******************************************************************************************
Note: See TracChangeset
for help on using the changeset viewer.