fix Ticket #272 (synchronisation from const methods)

This commit is contained in:
Fischlurch 2009-09-27 15:27:07 +02:00
parent 517fb8b200
commit 373f9a5724

View file

@ -387,10 +387,10 @@ namespace lib {
class Sync
{
typedef sync::Monitor<CONF> Monitor;
Monitor objectMonitor_;
mutable Monitor objectMonitor_;
static Monitor&
getMonitor(Sync* forThis)
getMonitor(const Sync* forThis)
{
REQUIRE (forThis);
return forThis->objectMonitor_;