From 373f9a5724986dc8a8ce557deb707cbae42f14ef Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Sun, 27 Sep 2009 15:27:07 +0200 Subject: [PATCH] fix Ticket #272 (synchronisation from const methods) --- src/lib/sync.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/sync.hpp b/src/lib/sync.hpp index d7afce536..d62960a94 100644 --- a/src/lib/sync.hpp +++ b/src/lib/sync.hpp @@ -387,10 +387,10 @@ namespace lib { class Sync { typedef sync::Monitor Monitor; - Monitor objectMonitor_; + mutable Monitor objectMonitor_; static Monitor& - getMonitor(Sync* forThis) + getMonitor(const Sync* forThis) { REQUIRE (forThis); return forThis->objectMonitor_;