The "cvar" command wasn't happy with private condition variables. Now we
don't check any longer whether the given number is the address of a condition variable in the global hash table; we just assume it is a valid condition variable pointer. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26674 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -66,15 +66,8 @@ dump_condition_variable(int argc, char** argv)
|
|||||||
ConditionVariable* variable = sConditionVariableHash.Lookup((void*)address);
|
ConditionVariable* variable = sConditionVariableHash.Lookup((void*)address);
|
||||||
|
|
||||||
if (variable == NULL) {
|
if (variable == NULL) {
|
||||||
// It might be a direct pointer to a condition variable. Search the
|
// It must be a direct pointer to a condition variable.
|
||||||
// hash.
|
variable = (ConditionVariable*)address;
|
||||||
ConditionVariableHash::Iterator it(&sConditionVariableHash);
|
|
||||||
while (ConditionVariable* hashVariable = it.Next()) {
|
|
||||||
if (hashVariable == (void*)address) {
|
|
||||||
variable = hashVariable;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (variable != NULL) {
|
if (variable != NULL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user