headers/private/kernel/util/OpenHashTable.h, Hugo's version, is a bit nicer than
Tracker's OpenHashTable.h which it should eventually replace. We've renamed the class to BOpenHashTable and changed the interface slightly so that HashTableLink became superfluous. Adapted all the code that used it. Since the OpenHashTables no longer clash, this should fix the GCC4 build. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31791 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -126,7 +126,8 @@ private:
|
||||
};
|
||||
|
||||
struct WaitObject : DoublyLinkedListLinkImpl<WaitObject>,
|
||||
HashTableLink<WaitObject>, WaitObjectKey {
|
||||
WaitObjectKey {
|
||||
struct WaitObject* hash_link;
|
||||
};
|
||||
|
||||
struct WaitObjectTableDefinition {
|
||||
@@ -150,14 +151,14 @@ private:
|
||||
&& value->object == key.object;
|
||||
}
|
||||
|
||||
HashTableLink<WaitObject>* GetLink(WaitObject* value) const
|
||||
WaitObject*& GetLink(WaitObject* value) const
|
||||
{
|
||||
return value;
|
||||
return value->hash_link;
|
||||
}
|
||||
};
|
||||
|
||||
typedef DoublyLinkedList<WaitObject> WaitObjectList;
|
||||
typedef OpenHashTable<WaitObjectTableDefinition> WaitObjectTable;
|
||||
typedef BOpenHashTable<WaitObjectTableDefinition> WaitObjectTable;
|
||||
|
||||
private:
|
||||
spinlock fLock;
|
||||
|
||||
Reference in New Issue
Block a user