Searched refs:pHashTable (Results 1 – 2 of 2) sorted by relevance
46 HashTable* pHashTable; in dvmHashTableCreate() local50 pHashTable = (HashTable*) malloc(sizeof(*pHashTable)); in dvmHashTableCreate()51 if (pHashTable == NULL) in dvmHashTableCreate()54 dvmInitMutex(&pHashTable->lock); in dvmHashTableCreate()56 pHashTable->tableSize = dexRoundUpPower2(initialSize); in dvmHashTableCreate()57 pHashTable->numEntries = pHashTable->numDeadEntries = 0; in dvmHashTableCreate()58 pHashTable->freeFunc = freeFunc; in dvmHashTableCreate()59 pHashTable->pEntries = in dvmHashTableCreate()60 (HashEntry*) calloc(pHashTable->tableSize, sizeof(HashEntry)); in dvmHashTableCreate()61 if (pHashTable->pEntries == NULL) { in dvmHashTableCreate()[all …]
103 void dvmHashTableClear(HashTable* pHashTable);108 void dvmHashTableFree(HashTable* pHashTable);114 INLINE void dvmHashTableLock(HashTable* pHashTable) { in dvmHashTableLock() argument115 dvmLockMutex(&pHashTable->lock); in dvmHashTableLock()117 INLINE void dvmHashTableUnlock(HashTable* pHashTable) { in dvmHashTableUnlock() argument118 dvmUnlockMutex(&pHashTable->lock); in dvmHashTableUnlock()124 INLINE int dvmHashTableNumEntries(HashTable* pHashTable) { in dvmHashTableNumEntries() argument125 return pHashTable->numEntries; in dvmHashTableNumEntries()131 INLINE int dvmHashTableMemUsage(HashTable* pHashTable) { in dvmHashTableMemUsage() argument132 return sizeof(HashTable) + pHashTable->tableSize * sizeof(HashEntry); in dvmHashTableMemUsage()[all …]