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:
@@ -16,7 +16,7 @@
|
|||||||
#include <util/OpenHashTable.h>
|
#include <util/OpenHashTable.h>
|
||||||
|
|
||||||
|
|
||||||
class ConditionVariable;
|
struct ConditionVariable;
|
||||||
|
|
||||||
|
|
||||||
struct ConditionVariableEntry
|
struct ConditionVariableEntry
|
||||||
@@ -42,11 +42,11 @@ private:
|
|||||||
struct thread* fThread;
|
struct thread* fThread;
|
||||||
status_t fWaitStatus;
|
status_t fWaitStatus;
|
||||||
|
|
||||||
friend class ConditionVariable;
|
friend struct ConditionVariable;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class ConditionVariable : protected HashTableLink<ConditionVariable> {
|
struct ConditionVariable : protected HashTableLink<ConditionVariable> {
|
||||||
public:
|
public:
|
||||||
void Init(const void* object,
|
void Init(const void* object,
|
||||||
const char* objectType);
|
const char* objectType);
|
||||||
@@ -82,8 +82,8 @@ protected:
|
|||||||
const char* fObjectType;
|
const char* fObjectType;
|
||||||
EntryList fEntries;
|
EntryList fEntries;
|
||||||
|
|
||||||
friend class ConditionVariableEntry;
|
friend struct ConditionVariableEntry;
|
||||||
friend class ConditionVariableHashDefinition;
|
friend struct ConditionVariableHashDefinition;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#include <util/DoublyLinkedList.h>
|
#include <util/DoublyLinkedList.h>
|
||||||
|
|
||||||
|
|
||||||
class ConditionVariable;
|
struct ConditionVariable;
|
||||||
struct mutex;
|
struct mutex;
|
||||||
struct rw_lock;
|
struct rw_lock;
|
||||||
struct thread;
|
struct thread;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#include <thread_defs.h>
|
#include <thread_defs.h>
|
||||||
|
|
||||||
|
|
||||||
class ConditionVariable;
|
struct ConditionVariable;
|
||||||
struct mutex;
|
struct mutex;
|
||||||
struct rw_lock;
|
struct rw_lock;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user