--- include/zthread/Guard.h.orig 2005-03-13 02:10:09 UTC +++ include/zthread/Guard.h @@ -108,7 +108,7 @@ class CompoundScope { } template - static void createScope(LockHolder& l, unsigned long ms) { + static bool createScope(LockHolder& l, unsigned long ms) { if(Scope1::createScope(l, ms)) if(!Scope2::createScope(l, ms)) { @@ -428,7 +428,7 @@ public: template Guard(Guard& g) : LockHolder(g) { - LockingPolicy::shareScope(*this, extract(g)); + LockingPolicy::shareScope(*this, this->extract(g)); } @@ -458,7 +458,7 @@ public: template Guard(Guard& g, LockType& lock) : LockHolder(lock) { - LockingPolicy::transferScope(*this, extract(g)); + LockingPolicy::transferScope(*this, this->extract(g)); } @@ -491,7 +491,7 @@ Guard::~Guard() try { - if(!isDisabled()) + if(!this->isDisabled()) LockingPolicy::destroyScope(*this); } catch (...) { /* ignore */ }