SOURCES: ZThread-c++.patch (NEW) - C++ fixes needed by gcc 4.1+
qboosh
qboosh at pld-linux.org
Wed Sep 10 19:04:17 CEST 2008
Author: qboosh Date: Wed Sep 10 17:04:17 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- C++ fixes needed by gcc 4.1+
---- Files affected:
SOURCES:
ZThread-c++.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/ZThread-c++.patch
diff -u /dev/null SOURCES/ZThread-c++.patch:1.1
--- /dev/null Wed Sep 10 19:04:18 2008
+++ SOURCES/ZThread-c++.patch Wed Sep 10 19:04:11 2008
@@ -0,0 +1,94 @@
+--- ZThread-2.3.2/src/MutexImpl.h.orig 2005-03-13 04:59:15.000000000 +0100
++++ ZThread-2.3.2/src/MutexImpl.h 2008-09-10 18:19:39.448986470 +0200
+@@ -153,7 +153,7 @@ void MutexImpl<List, Behavior>::acquire(
+
+ _owner = self;
+
+- ownerAcquired(self);
++ Behavior::ownerAcquired(self);
+
+ }
+
+@@ -164,7 +164,7 @@ void MutexImpl<List, Behavior>::acquire(
+ _waiters.insert(self);
+ m.acquire();
+
+- waiterArrived(self);
++ Behavior::waiterArrived(self);
+
+ {
+
+@@ -173,7 +173,7 @@ void MutexImpl<List, Behavior>::acquire(
+
+ }
+
+- waiterDeparted(self);
++ Behavior::waiterDeparted(self);
+
+ m.release();
+
+@@ -192,7 +192,7 @@ void MutexImpl<List, Behavior>::acquire(
+ assert(_owner == 0);
+ _owner = self;
+
+- ownerAcquired(self);
++ Behavior::ownerAcquired(self);
+
+ break;
+
+@@ -236,7 +236,7 @@ bool MutexImpl<List, Behavior>::tryAcqui
+
+ _owner = self;
+
+- ownerAcquired(self);
++ Behavior::ownerAcquired(self);
+
+ }
+
+@@ -253,7 +253,7 @@ bool MutexImpl<List, Behavior>::tryAcqui
+
+ m.acquire();
+
+- waiterArrived(self);
++ Behavior::waiterArrived(self);
+
+ {
+
+@@ -262,7 +262,7 @@ bool MutexImpl<List, Behavior>::tryAcqui
+
+ }
+
+- waiterDeparted(self);
++ Behavior::waiterDeparted(self);
+
+ m.release();
+
+@@ -284,7 +284,7 @@ bool MutexImpl<List, Behavior>::tryAcqui
+ assert(0 == _owner);
+ _owner = self;
+
+- ownerAcquired(self);
++ Behavior::ownerAcquired(self);
+
+ break;
+
+@@ -326,7 +326,7 @@ void MutexImpl<List, Behavior>::release(
+
+ _owner = 0;
+
+- ownerReleased(impl);
++ Behavior::ownerReleased(impl);
+
+ // Try to find a waiter with a backoff & retry scheme
+ for(;;) {
+--- ZThread-2.3.2/include/zthread/Guard.h.orig 2005-03-13 03:10:09.000000000 +0100
++++ ZThread-2.3.2/include/zthread/Guard.h 2008-09-10 18:14:58.176983956 +0200
+@@ -491,7 +491,7 @@ Guard<LockType, LockingPolicy>::~Guard()
+
+ try {
+
+- if(!isDisabled())
++ if(!LockHolder<LockType>::isDisabled())
+ LockingPolicy::destroyScope(*this);
+
+ } catch (...) { /* ignore */ }
================================================================
More information about the pld-cvs-commit
mailing list