--- linuxsampler/trunk/src/network/lscpserver.h 2005/02/06 21:01:38 359 +++ linuxsampler/trunk/src/network/lscpserver.h 2005/02/07 00:19:30 360 @@ -129,6 +129,9 @@ static std::map bufferedCommands; static void SendLSCPNotify( LSCPEvent Event ); + static int EventSubscribers( std::list events ); + static void LockRTNotify( void ) { RTNotifyMutex.Lock(); } + static void UnlockRTNotify( void ) { RTNotifyMutex.Unlock(); } protected: int hSocket; @@ -159,6 +162,11 @@ static Mutex SubscriptionMutex; static std::map< LSCPEvent::event_t, std::list > eventSubscriptions; static fd_set fdSet; + + //Protect main thread that generates real time notify messages + //like voice count, stream count and buffer fill + //from LSCP server removing engines and channels from underneath + static Mutex RTNotifyMutex; }; /**