Add BMessenger::HashValue()

This commit is contained in:
Ingo Weinhold
2013-06-27 21:57:42 +02:00
parent cb4a05cfdf
commit 3e8daeb7bc
2 changed files with 9 additions and 0 deletions
+2
View File
@@ -57,6 +57,8 @@ public:
bool IsValid() const; bool IsValid() const;
team_id Team() const; team_id Team() const;
uint32 HashValue() const;
//----- Private or reserved ----------------------------------------- //----- Private or reserved -----------------------------------------
class Private; class Private;
+7
View File
@@ -504,6 +504,13 @@ BMessenger::Team() const
} }
uint32
BMessenger::HashValue() const
{
return fPort * 19 + fHandlerToken;
}
// #pragma mark - Private or reserved // #pragma mark - Private or reserved