[Haiku-commits] r31191 - haiku/trunk/headers/private/kernel

bonefish at mail.berlios.de bonefish at mail.berlios.de
Tue Jun 23 01:49:07 CEST 2009


Author: bonefish
Date: 2009-06-23 01:49:05 +0200 (Tue, 23 Jun 2009)
New Revision: 31191
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=31191&view=rev

Modified:
   haiku/trunk/headers/private/kernel/condition_variable.h
   haiku/trunk/headers/private/kernel/listeners.h
   haiku/trunk/headers/private/kernel/scheduling_analysis.h
Log:
Changed ConditionVariable from class to struct to make it more C-friendly.


Modified: haiku/trunk/headers/private/kernel/condition_variable.h
===================================================================
--- haiku/trunk/headers/private/kernel/condition_variable.h	2009-06-22 23:46:55 UTC (rev 31190)
+++ haiku/trunk/headers/private/kernel/condition_variable.h	2009-06-22 23:49:05 UTC (rev 31191)
@@ -16,7 +16,7 @@
 #include <util/OpenHashTable.h>
 
 
-class ConditionVariable;
+struct ConditionVariable;
 
 
 struct ConditionVariableEntry
@@ -42,11 +42,11 @@
 			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 @@
 			const char*			fObjectType;
 			EntryList			fEntries;
 
-			friend class ConditionVariableEntry;
-			friend class ConditionVariableHashDefinition;
+			friend struct ConditionVariableEntry;
+			friend struct ConditionVariableHashDefinition;
 };
 
 

Modified: haiku/trunk/headers/private/kernel/listeners.h
===================================================================
--- haiku/trunk/headers/private/kernel/listeners.h	2009-06-22 23:46:55 UTC (rev 31190)
+++ haiku/trunk/headers/private/kernel/listeners.h	2009-06-22 23:49:05 UTC (rev 31191)
@@ -11,7 +11,7 @@
 #include <util/DoublyLinkedList.h>
 
 
-class ConditionVariable;
+struct ConditionVariable;
 struct mutex;
 struct rw_lock;
 struct thread;

Modified: haiku/trunk/headers/private/kernel/scheduling_analysis.h
===================================================================
--- haiku/trunk/headers/private/kernel/scheduling_analysis.h	2009-06-22 23:46:55 UTC (rev 31190)
+++ haiku/trunk/headers/private/kernel/scheduling_analysis.h	2009-06-22 23:49:05 UTC (rev 31191)
@@ -9,7 +9,7 @@
 #include <thread_defs.h>
 
 
-class ConditionVariable;
+struct ConditionVariable;
 struct mutex;
 struct rw_lock;
 




More information about the Haiku-commits mailing list