* Replaced the useless InitCheck() method in {Open,Multi}HashTable (it
always returned B_OK) by a Init() method, which sets the initial size and returns an error, if that fails. * Adjusted code using the classes accordingly. Replaced a few InitCheck() methods in the network code by Init(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26127 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -327,10 +327,9 @@ ConditionVariable::_NotifyChecked(bool all, status_t result)
|
||||
void
|
||||
condition_variable_init()
|
||||
{
|
||||
new(&sConditionVariableHash) ConditionVariableHash(
|
||||
kConditionVariableHashSize);
|
||||
new(&sConditionVariableHash) ConditionVariableHash;
|
||||
|
||||
status_t error = sConditionVariableHash.InitCheck();
|
||||
status_t error = sConditionVariableHash.Init(kConditionVariableHashSize);
|
||||
if (error != B_OK) {
|
||||
panic("condition_variable_init(): Failed to init hash table: %s",
|
||||
strerror(error));
|
||||
|
||||
Reference in New Issue
Block a user