Changed ConditionVariable from class to struct to make it more C-friendly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31191 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
6dcc2a7e00
commit
5ea5f51d84
@ -16,7 +16,7 @@
|
||||
#include <util/OpenHashTable.h>
|
||||
|
||||
|
||||
class ConditionVariable;
|
||||
struct ConditionVariable;
|
||||
|
||||
|
||||
struct ConditionVariableEntry
|
||||
@ -42,11 +42,11 @@ private:
|
||||
struct thread* fThread;
|
||||
status_t fWaitStatus;
|
||||
|
||||
friend class ConditionVariable;
|
||||
friend struct ConditionVariable;
|
||||
};
|
||||
|
||||
|
||||
class ConditionVariable : protected HashTableLink<ConditionVariable> {
|
||||
struct ConditionVariable : protected HashTableLink<ConditionVariable> {
|
||||
public:
|
||||
void Init(const void* object,
|
||||
const char* objectType);
|
||||
@ -82,8 +82,8 @@ protected:
|
||||
const char* fObjectType;
|
||||
EntryList fEntries;
|
||||
|
||||
friend class ConditionVariableEntry;
|
||||
friend class ConditionVariableHashDefinition;
|
||||
friend struct ConditionVariableEntry;
|
||||
friend struct ConditionVariableHashDefinition;
|
||||
};
|
||||
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include <util/DoublyLinkedList.h>
|
||||
|
||||
|
||||
class ConditionVariable;
|
||||
struct ConditionVariable;
|
||||
struct mutex;
|
||||
struct rw_lock;
|
||||
struct thread;
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include <thread_defs.h>
|
||||
|
||||
|
||||
class ConditionVariable;
|
||||
struct ConditionVariable;
|
||||
struct mutex;
|
||||
struct rw_lock;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user