$NetBSD: patch-zthread_include_zthread_Guard.h,v 1.1 2012/11/16 00:53:01 joerg Exp $ --- zthread/include/zthread/Guard.h.orig 2012-11-15 14:59:53.000000000 +0000 +++ zthread/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)); }