--- linuxsampler/trunk/src/Sampler.cpp 2012/10/04 17:45:22 2375 +++ linuxsampler/trunk/src/Sampler.cpp 2013/03/02 07:03:04 2427 @@ -3,7 +3,7 @@ * LinuxSampler - modular, streaming capable sampler * * * * Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * - * Copyright (C) 2005 - 2012 Christian Schoenebeck * + * Copyright (C) 2005 - 2013 Christian Schoenebeck * * * * This library is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -769,7 +769,7 @@ if (LSCPServer::EventSubscribers(events)) { - LSCPServer::LockRTNotify(); + LockGuard lock(LSCPServer::RTNotifyMutex); std::map channels = GetSamplerChannels(); std::map::iterator iter = channels.begin(); for (; iter != channels.end(); iter++) { @@ -785,8 +785,6 @@ fireTotalStreamCountChanged(GetDiskStreamCount()); fireTotalVoiceCountChanged(GetVoiceCount()); - - LSCPServer::UnlockRTNotify(); } }