summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Bogusz2008-09-10 17:04:11 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commitde13a9caaeeed7a98a80265e8088bdb13aae0a7b (patch)
tree6db9e0a1a5ae1d9d40a1e13fc8509b59b65d9964
parent6e46190957859b265bf72f70d5f4ba474c098741 (diff)
downloadZThread-de13a9caaeeed7a98a80265e8088bdb13aae0a7b.zip
ZThread-de13a9caaeeed7a98a80265e8088bdb13aae0a7b.tar.gz
- C++ fixes needed by gcc 4.1+
Changed files: ZThread-c++.patch -> 1.1
-rw-r--r--ZThread-c++.patch94
1 files changed, 94 insertions, 0 deletions
diff --git a/ZThread-c++.patch b/ZThread-c++.patch
new file mode 100644
index 0000000..3dcf4a8
--- /dev/null
+++ b/ZThread-c++.patch
@@ -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 */ }