From de13a9caaeeed7a98a80265e8088bdb13aae0a7b Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Wed, 10 Sep 2008 17:04:11 +0000 Subject: - C++ fixes needed by gcc 4.1+ Changed files: ZThread-c++.patch -> 1.1 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::acquire( + + _owner = self; + +- ownerAcquired(self); ++ Behavior::ownerAcquired(self); + + } + +@@ -164,7 +164,7 @@ void MutexImpl::acquire( + _waiters.insert(self); + m.acquire(); + +- waiterArrived(self); ++ Behavior::waiterArrived(self); + + { + +@@ -173,7 +173,7 @@ void MutexImpl::acquire( + + } + +- waiterDeparted(self); ++ Behavior::waiterDeparted(self); + + m.release(); + +@@ -192,7 +192,7 @@ void MutexImpl::acquire( + assert(_owner == 0); + _owner = self; + +- ownerAcquired(self); ++ Behavior::ownerAcquired(self); + + break; + +@@ -236,7 +236,7 @@ bool MutexImpl::tryAcqui + + _owner = self; + +- ownerAcquired(self); ++ Behavior::ownerAcquired(self); + + } + +@@ -253,7 +253,7 @@ bool MutexImpl::tryAcqui + + m.acquire(); + +- waiterArrived(self); ++ Behavior::waiterArrived(self); + + { + +@@ -262,7 +262,7 @@ bool MutexImpl::tryAcqui + + } + +- waiterDeparted(self); ++ Behavior::waiterDeparted(self); + + m.release(); + +@@ -284,7 +284,7 @@ bool MutexImpl::tryAcqui + assert(0 == _owner); + _owner = self; + +- ownerAcquired(self); ++ Behavior::ownerAcquired(self); + + break; + +@@ -326,7 +326,7 @@ void MutexImpl::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::~Guard() + + try { + +- if(!isDisabled()) ++ if(!LockHolder::isDisabled()) + LockingPolicy::destroyScope(*this); + + } catch (...) { /* ignore */ } -- cgit v0.10.2