kernel/condition_variable: Make the debug type fetcher a static function.

No behavioral change intended.
This commit is contained in:
Augustin Cavalier
2024-11-05 13:46:53 -05:00
parent 7746364088
commit e9c9b2e448
3 changed files with 18 additions and 20 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
/*
* Copyright 2007-2011, Ingo Weinhold, [email protected].
* Copyright 2019, Haiku, Inc. All rights reserved.
* Copyright 2019-2024, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _KERNEL_CONDITION_VARIABLE_H
@@ -75,8 +75,10 @@ public:
const void* Object() const { return fObject; }
const char* ObjectType() const { return fObjectType; }
// Debug methods.
static void ListAll();
void Dump() const;
static status_t DebugGetType(ConditionVariable* cvar, char* name, size_t size);
private:
static int32 _Notify(const void* object, bool all, status_t result);
@@ -97,8 +99,6 @@ protected:
friend struct ConditionVariableEntry;
friend struct ConditionVariableHashDefinition;
friend ssize_t debug_condition_variable_type_strlcpy(ConditionVariable* cvar,
char* name, size_t size);
};