Add BMessenger::HashValue()

This commit is contained in:
Ingo Weinhold 2013-06-27 21:13:08 +02:00
parent cb4a05cfdf
commit 3e8daeb7bc
2 changed files with 9 additions and 0 deletions

View File

@ -57,6 +57,8 @@ public:
bool IsValid() const;
team_id Team() const;
uint32 HashValue() const;
//----- Private or reserved -----------------------------------------
class Private;

View File

@ -504,6 +504,13 @@ BMessenger::Team() const
}
uint32
BMessenger::HashValue() const
{
return fPort * 19 + fHandlerToken;
}
// #pragma mark - Private or reserved