1 --- ZThread-2.3.2/src/MutexImpl.h.orig 2005-03-13 04:59:15.000000000 +0100
2 +++ ZThread-2.3.2/src/MutexImpl.h 2008-09-10 18:19:39.448986470 +0200
3 @@ -153,7 +153,7 @@ void MutexImpl<List, Behavior>::acquire(
8 + Behavior::ownerAcquired(self);
12 @@ -164,7 +164,7 @@ void MutexImpl<List, Behavior>::acquire(
13 _waiters.insert(self);
16 - waiterArrived(self);
17 + Behavior::waiterArrived(self);
21 @@ -173,7 +173,7 @@ void MutexImpl<List, Behavior>::acquire(
25 - waiterDeparted(self);
26 + Behavior::waiterDeparted(self);
30 @@ -192,7 +192,7 @@ void MutexImpl<List, Behavior>::acquire(
34 - ownerAcquired(self);
35 + Behavior::ownerAcquired(self);
39 @@ -236,7 +236,7 @@ bool MutexImpl<List, Behavior>::tryAcqui
43 - ownerAcquired(self);
44 + Behavior::ownerAcquired(self);
48 @@ -253,7 +253,7 @@ bool MutexImpl<List, Behavior>::tryAcqui
52 - waiterArrived(self);
53 + Behavior::waiterArrived(self);
57 @@ -262,7 +262,7 @@ bool MutexImpl<List, Behavior>::tryAcqui
61 - waiterDeparted(self);
62 + Behavior::waiterDeparted(self);
66 @@ -284,7 +284,7 @@ bool MutexImpl<List, Behavior>::tryAcqui
70 - ownerAcquired(self);
71 + Behavior::ownerAcquired(self);
75 @@ -326,7 +326,7 @@ void MutexImpl<List, Behavior>::release(
79 - ownerReleased(impl);
80 + Behavior::ownerReleased(impl);
82 // Try to find a waiter with a backoff & retry scheme
84 --- ZThread-2.3.2/include/zthread/Guard.h.orig 2005-03-13 03:10:09.000000000 +0100
85 +++ ZThread-2.3.2/include/zthread/Guard.h 2008-09-10 18:14:58.176983956 +0200
87 template <class U, class V>
88 Guard(Guard<U, V>& g) : LockHolder<LockType>(g) {
90 - LockingPolicy::shareScope(*this, extract(g));
91 + LockingPolicy::shareScope(*this, this->extract(g));
96 template <class U, class V>
97 Guard(Guard<U, V>& g, LockType& lock) : LockHolder<LockType>(lock) {
99 - LockingPolicy::transferScope(*this, extract(g));
100 + LockingPolicy::transferScope(*this, this->extract(g));
104 @@ -491,7 +491,7 @@ Guard<LockType, LockingPolicy>::~Guard()
109 + if(!LockHolder<LockType>::isDisabled())
110 LockingPolicy::destroyScope(*this);
112 } catch (...) { /* ignore */ }